original_docstring:  Add a single entity name.
      
docstring: Add a single entity name.
docstring_tokens: Add a single entity name .
code: def add(self,name):
      """ Add a single entity name.
      """
      self.name_set.add(name)
      tokens = simple_tokenize(name)
      # self.index is sort of a brain-damaged trie that makes matching
      # token sequences a bit faster.  for an entity w0....wk,
      # index[word0] = (w1,....,wk)
      suffix = tuple(tokens[1:])
      self.index[tokens[0]].add(suffix)
code_tokens: def add ( self , name ) : self . name_set . add ( name ) tokens = simple_tokenize ( name ) suffix = tuple ( tokens [ 1 : ] ) self . index [ tokens [ 0 ] ] . add ( suffix )
short_docstring: Add a single entity name.
short_docstring_tokens: Add a single entity name .
comment: """ Add a single entity name.
      """$SEP$# self.index is sort of a brain-damaged trie that makes matching$SEP$# token sequences a bit faster.  for an entity w0....wk,$SEP$# index[word0] = (w1,....,wk)