| EditDistance Class |
Namespace: Sdl.LanguagePlatform.Core.EditDistance
The EditDistance type exposes the following members.
| Name | Description | |
|---|---|---|
| EditDistance |
Initializes a new instance with default values.
| |
| EditDistance(Int32, Int32, Double) |
Initializes a new instance with the specified parameters.
|
| Name | Description | |
|---|---|---|
| Distance |
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.
| |
| Item |
Retrieves the edit distance information at the specified index.
| |
| Items |
Gets or sets the list of edit operations.
| |
| Score |
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.
| |
| SourceObjectCount |
Gets the length of the source sequence.
| |
| TargetObjectCount |
Gets the length of the target sequence.
|
| Name | Description | |
|---|---|---|
| Add |
Adds a new edit distance operation to the list.
| |
| AddAtStart |
Inserts a new edit distance operation at the beginning of the list.
| |
| Dump |
Textually writes the edit distance information to a stream, for debugging purposes.
| |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| FindSourceItemIndex |
Retrieves the edit operation index for a specified source sequence offset.
| |
| FindTargetItemIndex |
Retrieves the edit operation index for a specified target sequence offset.
| |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| SetResolutionAt |
Sets the edit distance resolution for the edit distance item at the
specified index.
| |
| SetSourceAt |
Sets the source offset for the edit operation at the specific index. This
is necessary if indices have been changed in the underlying sequence.
| |
| SetTargetAt |
Sets the target offset for the edit operation at the specific index. This
is necessary if indices have been changed in the underlying sequence.
| |
| Sort |
Sorts the edit distance items.
| |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |