class_docstr: An abstract class that computes the semantic similarity score between
      original text and adversarial texts
  
  :param ~textflint.input.dataset origin_dataset:
          the dataset of origin sample
  :param ~textflint.input.dataset trans_dataset:
      the dataset of translate sample
  :param str|list fields: the name of the origin field need compare.
  :param bool need_tokens: if we need tokenize the sentence
docstr: Calculate the score
  
  :param str transformed_text: transformed sentence
  :param str reference_text: origin sentence
  :return float: the score of two sentence
code: def validate(self, transformed_text, reference_text):
      r"""
      Calculate the score
  
      :param str transformed_text: transformed sentence
      :param str reference_text: origin sentence
      :return float: the score of two sentence
  
      """
      raise NotImplementedError()
  
file_path: textflint/textflint/generation/validator/validator.py
imports: import numpy
  from abc import ABC, abstractmethod
  from ...input.dataset.dataset import *
label_desc: Use image node_id 2 for calling the Validator obj's underlying member method code with example usage: obj.validate(transformed_text, reference_text) without return types