Search Results for

    Show / Hide Table of Contents

    Class NGramTransformation

    Produces N-grams based on splitting a text on whitespace characters.
    Removes punctuation as well.

    Inheritance
    object
    BusinessRuleTransformation
    NGramTransformation
    Inherited Members
    BusinessRuleTransformation.TraceRefId
    BusinessRuleTransformation.Names
    BusinessRuleTransformation.Description
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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

    ToJson()

    Declaration
    public string ToJson()
    Returns
    string

    Back to top Generated by DocFX