Class WordCounter
This class is used to count the words of a segment.
Inherited Members
Namespace: SdlSdl.ProjectAutomationAutomaticTasks
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 |