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
    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)

    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
    System.Collections.Generic.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
    System.Collections.Generic.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
    System.Threading.Tasks.Task<System.Collections.Generic.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
    System.Threading.Tasks.Task<System.Collections.Generic.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
    System.Collections.Generic.List<Placeable> placeables

    Previously-computed placeables

    Sdl.Core.FineGrainedAlignment.Core.LiftAlignedSpanPairSet alignmentData

    Object in which to store the alignments

    System.Collections.Generic.List<Token> sourceTokens

    List of tokens in the source segment

    System.Collections.Generic.List<Token> targetTokens

    List of tokens in the target segment

    On this page

    • 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