Class SimpleAlignmentEvidence
Inheritance
System.Object
SimpleAlignmentEvidence
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.Core.FineGrainedAlignment.dll
Syntax
public class SimpleAlignmentEvidence : AlignmentEvidence
Constructors
SimpleAlignmentEvidence(Int16, Int16, Single)
Declaration
public SimpleAlignmentEvidence(short sourceIndex, short targetIndex, float confidence)
Parameters
Type |
Name |
Description |
System.Int16 |
sourceIndex |
|
System.Int16 |
targetIndex |
|
System.Single |
confidence |
|
Properties
FirstSourceTokenIndex
Declaration
public override short FirstSourceTokenIndex { get; }
Property Value
Type |
Description |
System.Int16 |
|
Overrides
FirstTargetTokenIndex
Declaration
public override short FirstTargetTokenIndex { get; }
Property Value
Type |
Description |
System.Int16 |
|
Overrides
LastSourceTokenIndex
Declaration
public override short LastSourceTokenIndex { get; }
Property Value
Type |
Description |
System.Int16 |
|
Overrides
LastTargetTokenIndex
Declaration
public override short LastTargetTokenIndex { get; }
Property Value
Type |
Description |
System.Int16 |
|
Overrides
Methods
AttemptToUse(LiftAlignedSpanPair, Boolean[], Boolean[], Boolean)
Declaration
public override bool AttemptToUse(LiftAlignedSpanPair pair, bool[] sourceTokenUseFlags, bool[] targetTokenUseFlags, bool outside)
Parameters
Type |
Name |
Description |
Sdl.Core.FineGrainedAlignment.Core.LiftAlignedSpanPair |
pair |
|
System.Boolean[] |
sourceTokenUseFlags |
|
System.Boolean[] |
targetTokenUseFlags |
|
System.Boolean |
outside |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
Concerns(LiftAlignedSpanPair, Boolean)
Declaration
public override bool Concerns(LiftAlignedSpanPair pair, bool outside)
Parameters
Type |
Name |
Description |
Sdl.Core.FineGrainedAlignment.Core.LiftAlignedSpanPair |
pair |
|
System.Boolean |
outside |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
ConfidenceFor(LiftAlignedSpanPair, Boolean)
Declaration
public override float ConfidenceFor(LiftAlignedSpanPair pair, bool outside)
Parameters
Type |
Name |
Description |
Sdl.Core.FineGrainedAlignment.Core.LiftAlignedSpanPair |
pair |
|
System.Boolean |
outside |
|
Returns
Type |
Description |
System.Single |
|
Overrides
Covers(Int16, Int16)
Declaration
public override bool Covers(short sourceTokenIndex, short targetTokenIndex)
Parameters
Type |
Name |
Description |
System.Int16 |
sourceTokenIndex |
|
System.Int16 |
targetTokenIndex |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
GetIsNoLongerValid(LiftAlignedSpanPair)
Declaration
public override bool GetIsNoLongerValid(LiftAlignedSpanPair newAlignment)
Parameters
Type |
Name |
Description |
Sdl.Core.FineGrainedAlignment.Core.LiftAlignedSpanPair |
newAlignment |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
SourceConfidenceFor(LiftAlignedSpanPair, Boolean)
Declaration
public override float SourceConfidenceFor(LiftAlignedSpanPair pair, bool outside)
Parameters
Type |
Name |
Description |
Sdl.Core.FineGrainedAlignment.Core.LiftAlignedSpanPair |
pair |
|
System.Boolean |
outside |
|
Returns
Type |
Description |
System.Single |
|
Overrides
TargetConfidenceFor(LiftAlignedSpanPair, Boolean)
Declaration
public override float TargetConfidenceFor(LiftAlignedSpanPair pair, bool outside)
Parameters
Type |
Name |
Description |
Sdl.Core.FineGrainedAlignment.Core.LiftAlignedSpanPair |
pair |
|
System.Boolean |
outside |
|
Returns
Type |
Description |
System.Single |
|
Overrides