toolbox/nt/database/__init__.py
def word2id(self, word):
        """Returns the integer ID for a given word.

        If the word is not found, it returns the ID for `<UNK>`.
        """
        try:
            return self._word2id_dict[word]
        except KeyError:
            return self._word2id_dict['<UNK>']
Returns the integer ID for a given word.

        If the word is not found, it returns the ID for `<UNK>`.
        
Returns the integer ID for a given word.
If the word is not found, it returns the ID for ``.
Returns the integer ID for a given word . If the word is not found it returns the ID for ` ` .
def word2id(self, word):
        try:
            return self._word2id_dict[word]
        except KeyError:
            return self._word2id_dict['<UNK>']
def word2id ( self , word ) : try : return self . _word2id_dict [ word ] except KeyError : return self . _word2id_dict [ '<UNK>' ]
Returns the integer ID for a given word.
Returns the integer ID for a given word .
"""Returns the integer ID for a given word.

        If the word is not found, it returns the ID for `<UNK>`.
        """
self
word