Class NGramTransformation
Produces N-grams based on splitting a text on whitespace characters.
Removes punctuation as well.
Inherited Members
Namespace: System.Dynamic.ExpandoObject
Syntax
[GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v13.0.0.0))")]
public class NGramTransformation : BusinessRuleTransformation
Properties
MaxWordLength
Maximum length of a word to be considered.
Declaration
[JsonProperty("maxWordLength", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
public int? MaxWordLength { get; set; }
Property Value
int? |
MinWordLength
Minimum length of a word to be considered.
Declaration
[JsonProperty("minWordLength", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
public int MinWordLength { get; set; }
Property Value
int |
Size
Maximum size of n-grams to produce.
Settings this to 3 will produce unigrams, bigrams, trigrams.
Declaration
[JsonProperty("size", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
public int Size { get; set; }
Property Value
int |
Methods
FromJson(string)
Declaration
public static NGramTransformation FromJson(string data)
Parameters
string data |
Returns
NGramTransformation |