def generatemeasureword(self, dictmeasurewords): if dictmeasurewords == None or len(dictmeasurewords) == 0: # No measure word, so don't update the field return None # Concatenate the measure words together with - before we put them into the MW field return preparetokens(self.config, dictionary.flattenmeasurewords(dictmeasurewords))
def mergeddictmws2mw(self, mergeddictmws): # Concatenate the measure words together with - before we put them into the MW field return preparetokens(self.config, dictionary.flattenmeasurewords(mergeddictmws))