Search Results for

    Show / Hide Table of Contents

    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)

    See ComputePlaceablesAsync(Segment, Segment)

    Declaration
    [Obsolete("Use ComputePlaceablesAsync")]
    public static List<Placeable> ComputePlaceables(Segment srcSegment, Segment trgSegment)
    Parameters
    Type Name Description
    Segment srcSegment
    Segment trgSegment
    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
    TranslationUnit 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
    Type Name Description
    Segment srcSegment

    The source segment

    Segment trgSegment

    The target segment

    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
    TranslationUnit 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)
    Parameters
    Type Name Description
    List<Placeable> placeables

    Previously-computed placeables

    LiftAlignedSpanPairSet alignmentData

    Object in which to store the alignments

    List<Token> sourceTokens

    List of tokens in the source segment

    List<Token> targetTokens

    List of tokens in the target segment

    In this article
    • Methods
      • ComputePlaceables(Segment, Segment)
      • ComputePlaceables(TranslationUnit)
      • ComputePlaceablesAsync(Segment, Segment)
      • ComputePlaceablesAsync(TranslationUnit)
      • ConvertPlaceablesToAlignments(List<Placeable>, LiftAlignedSpanPairSet, List<Token>, List<Token>)
    Back to top Generated by DocFX