code: def __init__(
      self,
      text1_length,
      vocab_size,
      embed_size=300,
      embed_weights=None,
      train_embed=True,
      target_mode="ranking",
      bigdl_type="float",
  ):
      self.text1_length = text1_length
      self.vocab_size = vocab_size
      self.embed_size = embed_size
      self.embed_weights = embed_weights
      self.train_embed = train_embed
      assert (
          target_mode == "ranking" or target_mode == "classification"
      ), "target_mode should be either ranking or classification"
      self.target_mode = target_mode
      self.bigdl_type = bigdl_type
  
imports: from zoo.models.common import *
label_desc: Use image node_id 1 to create a new TextMatcher object from inherited base classes: ZooModel, Ranker with example: obj = TextMatcher(text1_length, vocab_size, embed_size, embed_weights, train_embed, target_mode, bigdl_type)