Class NGramTransformation
Produces N-grams based on splitting a text on whitespace characters.
Removes punctuation as well.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: System.Dynamic.ExpandoObject
Syntax
public class NGramTransformation : BusinessRuleTransformation
Properties
MaxWordLength
Maximum length of a word to be considered.
Declaration
public int? MaxWordLength { get; set; }
Property Value
System.Nullable<System.Int32>
|
MinWordLength
Minimum length of a word to be considered.
Declaration
public int MinWordLength { get; set; }
Property Value
System.Int32
|
Size
Maximum size of n-grams to produce.
Settings this to 3 will produce unigrams, bigrams, trigrams.
Declaration
public int Size { get; set; }
Property Value
System.Int32
|
Methods
FromJson(String)
Declaration
public static NGramTransformation FromJson(string data)
Parameters
System.String
data
|
Returns
NGramTransformation
|
ToJson()
Declaration
public string ToJson()
Returns
System.String
|