Click or drag to resize
WordCounts Constructor (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.

Namespace: Sdl.LanguagePlatform.TranslationMemory
Assembly: Sdl.LanguagePlatform.TranslationMemory (in Sdl.LanguagePlatform.TranslationMemory.dll) Version: 1.6.0.0 (1.7.3662.0)
Syntax
public WordCounts(
	IList<Token> tokens
)

Parameters

tokens
Type: System.Collections.GenericIListToken
The token collection
See Also
Community
Edit

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