Class EditDistance
Inheritance
System.Object
EditDistance
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Sdl.LanguagePlatform.Core.dll
public class EditDistance
Constructors
Declaration
Declaration
public EditDistance(int sourceObjectCount, int targetObjectCount, double distance)
Parameters
Type |
Name |
Description |
System.Int32 |
sourceObjectCount |
|
System.Int32 |
targetObjectCount |
|
System.Double |
distance |
|
Properties
Declaration
public double Distance { get; set; }
Property Value
Type |
Description |
System.Double |
|
Declaration
public EditDistanceItem this[int index] { get; }
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Property Value
Declaration
public List<EditDistanceItem> Items { get; set; }
Property Value
Declaration
public double Score { get; }
Property Value
Type |
Description |
System.Double |
|
Declaration
public int SourceObjectCount { get; }
Property Value
Type |
Description |
System.Int32 |
|
Declaration
public int TargetObjectCount { get; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
Declaration
public void Add(EditDistanceItem item)
Parameters
Declaration
public void AddAtStart(EditDistanceItem item)
Parameters
Dump(TextWriter, String)
Declaration
public void Dump(TextWriter wtr, string msg)
Parameters
Type |
Name |
Description |
System.IO.TextWriter |
wtr |
|
System.String |
msg |
|
Declaration
public int FindSourceItemIndex(int sourceTokenOffset)
Parameters
Type |
Name |
Description |
System.Int32 |
sourceTokenOffset |
|
Returns
Type |
Description |
System.Int32 |
|
Declaration
public int FindTargetItemIndex(int targetTokenOffset)
Parameters
Type |
Name |
Description |
System.Int32 |
targetTokenOffset |
|
Returns
Type |
Description |
System.Int32 |
|
Declaration
public void SetResolutionAt(int index, EditDistanceResolution resolution)
Parameters
Declaration
public void SetSourceAt(int index, int offset)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
System.Int32 |
offset |
|
Declaration
public void SetTargetAt(int index, int offset)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
System.Int32 |
offset |
|
Declaration