Class PlaceableComputer
Provides methods to compute placeables and their alignments from two segments, or from a translation unit.
Inheritance
Object
PlaceableComputer
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: Sdl.LanguagePlatform.TranslationMemory
Assembly: Sdl.LanguagePlatform.TranslationMemory.dll
Syntax
public static class PlaceableComputer
Methods
ComputePlaceables(Segment, Segment)
Declaration
[Obsolete("Use ComputePlaceablesAsync")]
public static List<Placeable> ComputePlaceables(Segment srcSegment, Segment trgSegment)
Parameters
Returns
Type | Description |
---|---|
List<Placeable> |
ComputePlaceables(TranslationUnit)
Computes the list of placeables and their alignment, given the provided translation unit.
Declaration
[Obsolete("Use ComputePlaceablesAsync")]
public static List<Placeable> ComputePlaceables(TranslationUnit tu)
Parameters
Type | Name | Description |
---|---|---|
Translation |
tu | The translation unit to compute the placeables for |
Returns
Type | Description |
---|---|
List<Placeable> | A list of placeables |
ComputePlaceablesAsync(Segment, Segment)
Computes the list of placeables and their alignment, given the provided segments.
Declaration
public static Task<List<Placeable>> ComputePlaceablesAsync(Segment srcSegment, Segment trgSegment)
Parameters
Returns
Type | Description |
---|---|
Task<List<Placeable>> | A list of placeables |
ComputePlaceablesAsync(TranslationUnit)
Computes the list of placeables and their alignment, given the provided segments.
Declaration
public static Task<List<Placeable>> ComputePlaceablesAsync(TranslationUnit tu)
Parameters
Type | Name | Description |
---|---|---|
Translation |
tu |
Returns
Type | Description |
---|---|
Task<List<Placeable>> |
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)