Click or drag to resize
WordCounts Class
Represents the result of a word count.
Inheritance Hierarchy
SystemObject
  Sdl.LanguagePlatform.TranslationMemoryWordCounts

Namespace: Sdl.LanguagePlatform.TranslationMemory
Assembly: Sdl.LanguagePlatform.TranslationMemory (in Sdl.LanguagePlatform.TranslationMemory.dll) Version: 1.6.0.0 (1.7.3662.0)
Syntax
public class WordCounts

The WordCounts type exposes the following members.

Constructors
  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
Properties
  NameDescription
Public propertyCharacters
Gets or sets the character count.
Public propertyIsZero
Gets a boolean value which indicates whether all count values are zero or not.
Public propertyPlaceables
Gets or sets the placeable count.
Public propertySegments
Gets or sets the segment count.
Public propertyTags
Gets or sets the tag count.
Public propertyWords
Gets or sets the word count.
Top
Methods
  NameDescription
Public methodAssign
Overwrites the count values of this instance with the values of another instance.
Public methodDuplicate
Creates a new instance that is a deep copy of this instance.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInc
Increments the count values of this instance with the count values of another instance.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also
Community
Edit

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