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