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, 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 |
Boolean | useNewTokenization | Flag determining whether the new tokenization method should be used |
Returns
Type | Description |
---|---|
CountData |