예제 #1
0
 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))
예제 #2
0
    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))
예제 #3
0
 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))
예제 #4
0
 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))