Click or drag to resize
ScoringResult Class
Represents the score for a search result.
Inheritance Hierarchy
SystemObject
  Sdl.LanguagePlatform.TranslationMemoryScoringResult

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 ScoringResult

The ScoringResult type exposes the following members.

Constructors
  NameDescription
Public methodScoringResult
Initializes a new instance with default values.
Top
Properties
  NameDescription
Public propertyAppliedPenalties
Gets or sets the list of applied penalties for this result.
Public propertyBaseScore
Gets or sets the base score for this result.
Public propertyEditDistance
Gets or sets the edit distance for this result. The edit distance is null for concordance searches and is only set for standard searches.
Public propertyIsExactMatch
Gets a value indicating whether this result is an exact match. This is the case if the base score is 100.
Public propertyIsStructureContextMatch
Gets or sets whether or not this match also matches the structural document context. If no structure context was specified during the search, the value will be false.
Public propertyMatch
Gets the final match score for this result, which is the base score minus the maluses of any applied penalties.
Public propertyMatchingConcordanceRanges

Gets or sets the matching concordance ranges for this result. This field is null for standard searches and only set for concordance searches. The value identifies the ranges in the memory source segment which match the concordance search.

Note that the ranges are not necessarily consecutive. They are, however, sorted.

Public propertyMemoryTagsDeleted
Gets or sets whether the tags are deleted or not for this result.
Public propertyResolvedPlaceables
Gets or sets the number of placeables that can be resolved for this result.
Public propertyTagMismatch
Gets or sets whether there are any tag mismatches. This flag is set even if no tag mismatch penalty is configured.
Public propertyTargetSegmentDiffers
Valid only when a whole TU is searched, and is only set if it's a 100% match. Not set for fuzzy or concordance matches.
Public propertyTextContextMatch
Gets or sets the type of context match for this result, if applicable.
Top
Methods
  NameDescription
Public methodApplyFilter
Applies a penalty to the current score, with a specified filter and cost.
Public methodApplyPenalty
Applies a penalty to the current score unless a penalty with the same type has already been applied.
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 methodFindAppliedFilter
Retrieves the applied penalty for a specified filter.
Public methodFindPenalty
Retrieves the applied penalty for a specified penalty type.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRemovePenalty
Removes the penalty of the specified type, if set.
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