Search Results for

    Show / Hide Table of Contents

    Class TranslationModel

    Inheritance
    System.Object
    TranslationModel
    ChiSquaredTranslationModel
    TrainedTranslationModel
    Namespace: Sdl.Core.FineGrainedAlignment
    Assembly: Sdl.Core.FineGrainedAlignment.dll
    Syntax
    public abstract class TranslationModel : Object

    Constructors

    TranslationModel()

    Declaration
    protected TranslationModel()

    Fields

    _corpusIds

    Declaration
    protected List<AlignableCorpusId> _corpusIds
    Field Value
    Type Description
    System.Collections.Generic.List<AlignableCorpusId>

    _id

    Declaration
    protected TranslationModelId _id
    Field Value
    Type Description
    TranslationModelId

    _modelDate

    Declaration
    protected Nullable<DateTime> _modelDate
    Field Value
    Type Description
    System.Nullable<System.DateTime>

    _name

    Declaration
    protected string _name
    Field Value
    Type Description
    System.String

    _srcCulture

    Declaration
    protected CultureCode _srcCulture
    Field Value
    Type Description
    Sdl.Core.Globalization.CultureCode

    _trgCulture

    Declaration
    protected CultureCode _trgCulture
    Field Value
    Type Description
    Sdl.Core.Globalization.CultureCode

    Properties

    CorpusIds

    Declaration
    public IEnumerable<AlignableCorpusId> CorpusIds { get; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<AlignableCorpusId>

    Id

    Declaration
    public TranslationModelId Id { get; }
    Property Value
    Type Description
    TranslationModelId

    ModelType

    Declaration
    public abstract TranslationModelTypes ModelType { get; }
    Property Value
    Type Description
    TranslationModelTypes

    Name

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    System.String

    SourceCulture

    Declaration
    public CultureCode SourceCulture { get; }
    Property Value
    Type Description
    Sdl.Core.Globalization.CultureCode

    TargetCulture

    Declaration
    public CultureCode TargetCulture { get; }
    Property Value
    Type Description
    Sdl.Core.Globalization.CultureCode

    TranslationModelDate

    Declaration
    public Nullable<DateTime> TranslationModelDate { get; }
    Property Value
    Type Description
    System.Nullable<System.DateTime>

    Methods

    BuildModelAsync(IAlignableCorpusManagerAsync)

    Declaration
    public abstract Task BuildModelAsync(IAlignableCorpusManagerAsync corpusManager)
    Parameters
    Type Name Description
    IAlignableCorpusManagerAsync corpusManager
    Returns
    Type Description
    System.Threading.Tasks.Task

    CanBuildModelAsync(IAlignableCorpusManagerAsync)

    Declaration
    public abstract Task<bool> CanBuildModelAsync(IAlignableCorpusManagerAsync corpusManager)
    Parameters
    Type Name Description
    IAlignableCorpusManagerAsync corpusManager
    Returns
    Type Description
    System.Threading.Tasks.Task<System.Boolean>

    MeasureModelFitnessAsync(List<IAlignableContentPair>)

    Declaration
    public abstract Task<TranslationModelFitness> MeasureModelFitnessAsync(List<IAlignableContentPair> pairs)
    Parameters
    Type Name Description
    System.Collections.Generic.List<IAlignableContentPair> pairs
    Returns
    Type Description
    System.Threading.Tasks.Task<TranslationModelFitness>

    OnProgress(TranslationModelProgressEventArgs)

    Declaration
    protected void OnProgress(TranslationModelProgressEventArgs progressEventArgs)
    Parameters
    Type Name Description
    TranslationModelProgressEventArgs progressEventArgs

    OnProgress(TranslationModelProgressStage)

    Declaration
    protected void OnProgress(TranslationModelProgressStage progressStage)
    Parameters
    Type Name Description
    TranslationModelProgressStage progressStage

    OnProgress(TranslationModelProgressStage, Int32)

    Declaration
    protected void OnProgress(TranslationModelProgressStage progressStage, int progressNumber)
    Parameters
    Type Name Description
    TranslationModelProgressStage progressStage
    System.Int32 progressNumber

    OnProgress(TranslationModelProgressStage, Int32, Int32)

    Declaration
    protected void OnProgress(TranslationModelProgressStage progressStage, int progressNumber, int limit)
    Parameters
    Type Name Description
    TranslationModelProgressStage progressStage
    System.Int32 progressNumber
    System.Int32 limit

    OnProgress(Object, TranslationModelProgressEventArgs)

    Declaration
    protected void OnProgress(object sender, TranslationModelProgressEventArgs progressEventArgs)
    Parameters
    Type Name Description
    System.Object sender
    TranslationModelProgressEventArgs progressEventArgs

    ShouldBuildModelAsync(IAlignableCorpusManagerAsync)

    Declaration
    public abstract Task<bool> ShouldBuildModelAsync(IAlignableCorpusManagerAsync corpusManager)
    Parameters
    Type Name Description
    IAlignableCorpusManagerAsync corpusManager
    Returns
    Type Description
    System.Threading.Tasks.Task<System.Boolean>

    Events

    Progress

    Declaration
    public event EventHandler<TranslationModelProgressEventArgs> Progress
    Event Type
    Type Description
    System.EventHandler<TranslationModelProgressEventArgs>

    On this page

    Back to top Generated by DocFX