code: def __init__(self, definition: VariableDefinition):
      super(ShortStringType, self).__init__(definition)
  
      if definition.get("crf", False) is True:
          self.comparator = crfEd  # type: ignore[assignment]
      else:
          self.comparator = affineGap
  
file_path: dedupe/dedupe/variables/string.py
imports: from typing import Sequence, Type
  from affinegap import normalizedAffineGapDistance
  from highered import CRFEditDistance
  from simplecosine.cosine import CosineTextSimilarity
  from dedupe import predicates
  from dedupe._typing import PredicateFunction, VariableDefinition
  from dedupe.variables.base import FieldType, indexPredicates
label_desc: Use image node_id 1 to create a new ShortStringType object from inherited base classes: BaseStringType with example: obj = ShortStringType(definition)