Class PlaceableComputer
Provides methods to compute placeables and their alignments from two segments, or from a translation unit.
Inheritance
System.Object
PlaceableComputer
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()
Namespace: Sdl.LanguagePlatform.TranslationMemory
Assembly: Sdl.LanguagePlatform.TranslationMemory.dll
Syntax
public static class PlaceableComputer
Methods
ComputePlaceables(Segment, Segment)
Computes the list of placeables and their alignment, given the provided segments.
Declaration
public static List<Placeable> ComputePlaceables(Segment srcSegment, Segment trgSegment)
Parameters
Returns
Type | Description |
---|---|
System. |
A list of placeables |
ComputePlaceables(TranslationUnit)
Computes the list of placeables and their alignment, given the provided translation unit.
Declaration
public static List<Placeable> ComputePlaceables(TranslationUnit tu)
Parameters
Type | Name | Description |
---|---|---|
Translation |
tu | The translation unit to compute the placeables for |
Returns
Type | Description |
---|---|
System. |
A list of placeables |
ConvertPlaceablesToAlignments(List<Placeable>, LiftAlignedSpanPairSet, List<Token>, List<Token>)
Uses placeable information, computed for a given source and target segment, to add alignment entries to alignment data
Declaration
public static void ConvertPlaceablesToAlignments(List<Placeable> placeables, LiftAlignedSpanPairSet alignmentData, List<Token> sourceTokens, List<Token> targetTokens)
Parameters
Type | Name | Description |
---|---|---|
System. |
placeables | Previously-computed placeables |
Sdl. |
alignmentData | Object in which to store the alignments |
System. |
sourceTokens | List of tokens in the source segment |
System. |
targetTokens | List of tokens in the target segment |