Beispiel #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))
Beispiel #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))
Beispiel #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))
Beispiel #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))