Struct EditDistanceItem
Encapsulates information about one edit operation.
Inherited Members
Namespace: SdlSdl.LanguagePlatformCoreEditDistance
Assembly: Sdl.LanguagePlatform.Core.dll
Syntax
[DataContract]
public struct EditDistanceItem
Properties
Costs
Gets or sets the costs for this operation.
Declaration
[DataMember]
public double Costs { get; set; }
Property Value
Type | Description |
---|---|
double |
MoveSourceTarget
For move operations, this is the target position of the original deletion operation. For other operations, this value is not used.
Declaration
[DataMember]
public int MoveSourceTarget { get; set; }
Property Value
Type | Description |
---|---|
int |
MoveTargetSource
For move operations, this is the source position of the original insertion operation. For other operations, this value is not used.
Declaration
[DataMember]
public int MoveTargetSource { get; set; }
Property Value
Type | Description |
---|---|
int |
Operation
Gets or sets the edit operation identified to transform the source item into the target item.
Declaration
[DataMember]
public EditOperation Operation { get; set; }
Property Value
Type | Description |
---|---|
EditOperation |
Resolution
Gets or sets the edit distance resolution, if available.
Declaration
[DataMember]
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
[DataMember]
public int Source { get; set; }
Property Value
Type | Description |
---|---|
int |
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
[DataMember]
public int Target { get; set; }
Property Value
Type | Description |
---|---|
int |
Methods
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string representation of the object, for display purposes. |