Class TranslationModel
Inheritance
System.Object
TranslationModel
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()
Assembly: Sdl.Core.FineGrainedAlignment.dll
Syntax
public abstract class TranslationModel
Constructors
TranslationModel()
Declaration
protected TranslationModel()
Fields
_corpusIds
Declaration
protected List<AlignableCorpusId> _corpusIds
Field Value
_id
Declaration
protected TranslationModelId _id
Field Value
_modelDate
Declaration
protected DateTime? _modelDate
Field Value
Type |
Description |
System.Nullable<System.DateTime> |
|
_name
Declaration
Field Value
Type |
Description |
System.String |
|
_srcCulture
Declaration
protected CultureInfo _srcCulture
Field Value
Type |
Description |
System.Globalization.CultureInfo |
|
_trgCulture
Declaration
protected CultureInfo _trgCulture
Field Value
Type |
Description |
System.Globalization.CultureInfo |
|
Properties
CorpusIds
Declaration
public IEnumerable<AlignableCorpusId> CorpusIds { get; }
Property Value
Id
Declaration
public TranslationModelId Id { get; }
Property Value
ModelType
Declaration
public abstract TranslationModelTypes ModelType { get; }
Property Value
Name
Declaration
public string Name { get; }
Property Value
Type |
Description |
System.String |
|
SourceCulture
Declaration
public CultureInfo SourceCulture { get; }
Property Value
Type |
Description |
System.Globalization.CultureInfo |
|
TargetCulture
Declaration
public CultureInfo TargetCulture { get; }
Property Value
Type |
Description |
System.Globalization.CultureInfo |
|
TranslationModelDate
Declaration
public DateTime? TranslationModelDate { get; }
Property Value
Type |
Description |
System.Nullable<System.DateTime> |
|
Methods
BuildModel(IAlignableCorpusManager)
Declaration
public abstract void BuildModel(IAlignableCorpusManager corpusManager)
Parameters
CanBuildModel(IAlignableCorpusManager)
Declaration
public abstract bool CanBuildModel(IAlignableCorpusManager corpusManager)
Parameters
Returns
Type |
Description |
System.Boolean |
|
MeasureModelFitness(List<IAlignableContentPair>)
Declaration
public abstract TranslationModelFitness MeasureModelFitness(List<IAlignableContentPair> pairs)
Parameters
Returns
OnProgress(TranslationModelProgressEventArgs)
Declaration
protected void OnProgress(TranslationModelProgressEventArgs progressEventArgs)
Parameters
OnProgress(TranslationModelProgressStage)
Declaration
protected void OnProgress(TranslationModelProgressStage progressStage)
Parameters
OnProgress(TranslationModelProgressStage, Int32)
Declaration
protected void OnProgress(TranslationModelProgressStage progressStage, int progressNumber)
Parameters
OnProgress(TranslationModelProgressStage, Int32, Int32)
Declaration
protected void OnProgress(TranslationModelProgressStage progressStage, int progressNumber, int limit)
Parameters
OnProgress(Object, TranslationModelProgressEventArgs)
Declaration
protected void OnProgress(object sender, TranslationModelProgressEventArgs progressEventArgs)
Parameters
ShouldBuildModel(IAlignableCorpusManager)
Declaration
public abstract bool ShouldBuildModel(IAlignableCorpusManager corpusManager)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Events
Progress
Declaration
public event EventHandler<TranslationModelProgressEventArgs> Progress
Event Type