Click or drag to resize
WordCounts Constructor
Overload List
  NameDescription
Public methodWordCounts
Initializes a new instance with default values. All counts will be set to 0.
Public methodWordCounts(IListToken)
Initializes a new instance from the values in the provided token collection.
  • Word and abbreviation tokens increment the character count by the length of the token text and increment the word count by one,
  • Char sequence tokens (used in far-east tokenization) increment the word and character count by the length of the token text,
  • Punctuation tokens only increment the character count, by the length of the token text,
  • Date, time, variable, number, measurement, acronym, uri, and other text placeable tokens increment the word and character count like words do, but also increment the placeables count,
  • Tag tokens increment the tag and placeable counts, but not the word or character counts,
  • Whitespace tokens do not increment any counts (even not the character count),
  • All other token types do not increment any counts.
  • The segment count is set to 1, independent on the number and type of the tokens.
Public methodWordCounts(WordCounts)
Initializes a new instance with the values of another instance, creating a deep copy.
Public methodWordCounts(IListToken, Boolean, Boolean, Boolean, Boolean)
Initializes a new instance from the values in the provided token collection.
  • Word and abbreviation tokens increment the character count by the length of the token text and increment the word count by one,
  • Char sequence tokens (used in far-east tokenization) increment the word and character count by the length of the token text,
  • Punctuation tokens only increment the character count, by the length of the token text,
  • Date, time, variable, number, measurement, acronym, uri, and other text placeable tokens increment the word and character count like words do, but also increment the placeables count,
  • Tag tokens increment the tag and placeable counts, but not the word or character counts,
  • Whitespace tokens do not increment any counts (even not the character count),
  • All other token types do not increment any counts.
  • The segment count is set to 1, independent on the number and type of the tokens.
Top
See Also
Community
Edit

Be the first to Edit the community content of this topic.
Comments