Click or drag to resize
EditDistance Class
Represents the result of an edit distance computation.
Inheritance Hierarchy
SystemObject
  Sdl.LanguagePlatform.Core.EditDistanceEditDistance

Namespace: Sdl.LanguagePlatform.Core.EditDistance
Assembly: Sdl.LanguagePlatform.Core (in Sdl.LanguagePlatform.Core.dll) Version: 1.6.0.0 (1.7.3164.0)
Syntax
public class EditDistance

The EditDistance type exposes the following members.

Constructors
  NameDescription
Public methodEditDistance
Initializes a new instance with default values.
Public methodEditDistance(Int32, Int32, Double)
Initializes a new instance with the specified parameters.
Top
Properties
  NameDescription
Public propertyDistance
Gets or sets the standard distance score as a floating-point value representing the total cost of edit operations. Note that this value should not be used for TM operations. It only computes the basic costs of the transformation, but does not compute a match score (which also depends on the lengths of the sequences). For TM applications, use Score instead.
Public propertyItem
Retrieves the edit distance information at the specified index.
Public propertyItems
Gets or sets the list of edit operations.
Public propertyScore
Gets the edit distance score as a floating-point value between 0 and 1. The score depends on the length of the input vectors while the standard distance only represents the sum of the costs of all edit operations. Use this Score for TM applications.
Public propertySourceObjectCount
Gets the length of the source sequence.
Public propertyTargetObjectCount
Gets the length of the target sequence.
Top
Methods
  NameDescription
Public methodAdd
Adds a new edit distance operation to the list.
Public methodAddAtStart
Inserts a new edit distance operation at the beginning of the list.
Public methodDump
Textually writes the edit distance information to a stream, for debugging purposes.
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 methodFindSourceItemIndex
Retrieves the edit operation index for a specified source sequence offset.
Public methodFindTargetItemIndex
Retrieves the edit operation index for a specified target sequence offset.
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 methodSetResolutionAt
Sets the edit distance resolution for the edit distance item at the specified index.
Public methodSetSourceAt
Sets the source offset for the edit operation at the specific index. This is necessary if indices have been changed in the underlying sequence.
Public methodSetTargetAt
Sets the target offset for the edit operation at the specific index. This is necessary if indices have been changed in the underlying sequence.
Public methodSort
Sorts the edit distance items.
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