Search Results for

    Show / Hide Table of Contents

    Class WordCounter

    This class is used to count the words of a segment.

    Inheritance
    object
    WordCounter
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Sdl.ProjectAutomation.AutomaticTasks
    Assembly: Sdl.ProjectAutomation.AutomaticTasks.dll
    Syntax
    public class WordCounter

    Methods

    Count(ISegment)

    Gets the number of words in a segment, using the new tokenization method

    Declaration
    public CountData Count(ISegment segment)
    Parameters
    Type Name Description
    ISegment segment

    The segment where the count is performed

    Returns
    Type Description
    CountData

    Count(ISegment, bool)

    Count the words of a segment

    Declaration
    public CountData Count(ISegment segment, bool useNewTokenization)
    Parameters
    Type Name Description
    ISegment segment

    the segment to count words

    bool useNewTokenization

    Flag determining whether the new tokenization method should be used

    Returns
    Type Description
    CountData
    In this article
    • Methods
      • Count(ISegment)
      • Count(ISegment, bool)
    Back to top Generated by DocFX