예제 #1
0
 public PairwiseWordAlignerResult(IWordAligner wordAligner, IPairwiseAlignmentScorer<Word, ShapeNode> scorer, WordPairAlignerSettings settings, Word word1, Word word2)
     : base(wordAligner)
 {
     _words = new ReadOnlyList<Word>(new [] {word1, word2});
     _algorithm = new PairwiseAlignmentAlgorithm<Word, ShapeNode>(scorer, word1, word2, GetNodes)
         {
             ExpansionCompressionEnabled = settings.ExpansionCompressionEnabled,
             Mode = settings.Mode
         };
     _algorithm.Compute();
 }
예제 #2
0
 public PairwiseWordAlignerResult(IWordAligner wordAligner, IPairwiseAlignmentScorer <Word, ShapeNode> scorer, WordPairAlignerSettings settings, Word word1, Word word2)
     : base(wordAligner)
 {
     _words     = new ReadOnlyList <Word>(new [] { word1, word2 });
     _algorithm = new PairwiseAlignmentAlgorithm <Word, ShapeNode>(scorer, word1, word2, GetNodes)
     {
         ExpansionCompressionEnabled = settings.ExpansionCompressionEnabled,
         Mode = settings.Mode
     };
     _algorithm.Compute();
 }
예제 #3
0
 public Aline(SegmentPool segmentPool, IEnumerable <SymbolicFeature> relevantVowelFeatures, IEnumerable <SymbolicFeature> relevantConsFeatures,
              IDictionary <SymbolicFeature, int> featureWeights, IDictionary <FeatureSymbol, int> valueMetrics, WordPairAlignerSettings settings)
     : base(settings)
 {
     _scorer = new AlineScorer(segmentPool, relevantVowelFeatures, relevantConsFeatures, featureWeights, valueMetrics, settings.ContextualSoundClasses);
 }
예제 #4
0
 protected WordAlignerBase(WordPairAlignerSettings settings)
 {
     _settings          = settings;
     _settings.ReadOnly = true;
 }
예제 #5
0
 protected WordAlignerBase(WordPairAlignerSettings settings)
 {
     _settings = settings;
     _settings.ReadOnly = true;
 }