original_docstring: 
      Indexes the lexicon so we can perform faster queries
      :param lexicon:
      :return:
      
docstring: Indexes the lexicon so we can perform faster queries
docstring_tokens: Indexes the lexicon so we can perform faster queries
code: def indexLexicon(lexicon):
      """
      Indexes the lexicon so we can perform faster queries
      :param lexicon:
      :return:
      """
      index = {}
      if lexicon:
          for entry in lexicon:
              if entry.tag.endswith('}entry'):
                  strong, lemma = indexLexiconEntry(entry)
                  if strong and lemma:
                      index[strong.upper()] = lemma
      return index
code_tokens: def indexLexicon ( lexicon ) : index = { } if lexicon : for entry in lexicon : if entry . tag . endswith ( '}entry' ) : strong , lemma = indexLexiconEntry ( entry ) if strong and lemma : index [ strong . upper ( ) ] = lemma return index
short_docstring: Indexes the lexicon so we can perform faster queries
short_docstring_tokens: Indexes the lexicon so we can perform faster queries
comment: """
      Indexes the lexicon so we can perform faster queries
      :param lexicon:
      :return:
      """