parameters: (
              self, keyword_type, filename=r'', given_words_list=None)
docstring: 初始给定的关键词
              可以初始多个文件
docstring_summary: 初始给定的关键词
              可以初始多个文件
docstring_tokens: 初始给定的关键词 可以初始多个文件
function: def initGivenKeywords(
              self, keyword_type, filename=r'', given_words_list=None):
          ''' 初始给定的关键词
              可以初始多个文件
          '''
          given_words_index = esm.Index()
          words_list = None
          if len(filename) > 0:
              words_list = [word.strip()
                            for word in codecs.open(filename, 'r', 'utf-8')]
          if words_list is None and given_words_list is not None:
              words_list = given_words_list
          for word in words_list:
              word = word.encode('utf-8')
              given_words_index.enter(word)
          given_words_index.fix()
          self.given_words_indexs[keyword_type] = given_words_index
          pass
function_tokens: def initGivenKeywords ( self , keyword_type , filename = r'' , given_words_list = None ) : given_words_index = esm . Index ( ) words_list = None if len ( filename ) > 0 : words_list = [ word . strip ( ) for word in codecs . open ( filename , 'r' , 'utf-8' ) ] if words_list is None and given_words_list is not None : words_list = given_words_list for word in words_list : word = word . encode ( 'utf-8' ) given_words_index . enter ( word ) given_words_index . fix ( ) self . given_words_indexs [ keyword_type ] = given_words_index pass