Struct EditDistanceItem
Encapsulates information about one edit operation.
Inherited Members
Namespace: Sdl.LanguagePlatform.Core.EditDistance
Assembly: Sdl.LanguagePlatform.Core.dll
Syntax
public struct EditDistanceItem
Properties
Costs
Gets or sets the costs for this operation.
Declaration
public double Costs { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
MoveSourceTarget
For move operations, this is the target position of the original deletion operation. For other operations, this value is not used.
Declaration
public int MoveSourceTarget { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
MoveTargetSource
For move operations, this is the source position of the original insertion operation. For other operations, this value is not used.
Declaration
public int MoveTargetSource { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Operation
Gets or sets the edit operation identified to transform the source item into the target item.
Declaration
public EditOperation Operation { get; set; }
Property Value
Type | Description |
---|---|
EditOperation |
Resolution
Gets or sets the edit distance resolution, if available.
Declaration
public EditDistanceResolution Resolution { get; set; }
Property Value
Type | Description |
---|---|
EditDistanceResolution |
Source
Gets or sets the position of the source item. For move operations, this is the position in the source sequence where the item was deleted.
Declaration
public int Source { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Target
Gets or sets the position of the target item. For move operations, this is the position in the target sequence where the item was inserted.
Declaration
public int Target { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A string representation of the object, for display purposes. |