Click or drag to resize

wordAnalysisToolsgetNGrams Method

Home | imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Breaks the specified word into N-grams

Namespace:  imbNLP.PartOfSpeech.analysis
Assembly:  imbNLP.PartOfSpeech (in imbNLP.PartOfSpeech.dll) Version: 0.2.30
Syntax
C#
public static List<string> getNGrams(
	string word,
	int N = 2,
	nGramsModeEnum mode = nGramsModeEnum.overlap
)

Parameters

word
Type: SystemString
The word to be splitted into n-grams
N (Optional)
Type: SystemInt32
Size of N-grams, e.g. for bigrams: N=2
mode (Optional)
Type: imbNLP.PartOfSpeech.analysisnGramsModeEnum
The slicing mode

Return Value

Type: ListString
Set of NGrams
See Also