Beispiel #1
0
 def trigrams(self):
     '''S.trigrams -> list
     List of trigrams for selected language.
     '''
     trigrams = linguistics.get_ngramms(3, self.language)
     return trigrams
Beispiel #2
0
 def monograms(self):
     '''S.monograms -> list
     List of monograms for selected language.
     '''
     monograms = linguistics.get_ngramms(1, self.language)
     return monograms
Beispiel #3
0
 def bigrams(self):
     '''S.bigrams -> list
     List of bigrams for selected language.
     '''
     bigrams = linguistics.get_ngramms(2, self.language)
     return bigrams
Beispiel #4
0
 def tetragrams(self):
     '''S.tetragrams -> list
     List of tetragrams for selected language.
     '''
     tetragrams = linguistics.get_ngramms(4, self.language)
     return tetragrams