Search Results for

    Show / Hide Table of Contents

    Class WordCounter

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

    Inheritance
    System.Object
    WordCounter
    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: 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, Boolean)

    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

    System.Boolean useNewTokenization

    Flag determining whether the new tokenization method should be used

    Returns
    Type Description
    CountData

    On this page

    Back to top Generated by DocFX