Example #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();
 }
Example #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();
 }
Example #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);
 }
Example #4
0
 protected WordAlignerBase(WordPairAlignerSettings settings)
 {
     _settings          = settings;
     _settings.ReadOnly = true;
 }
Example #5
0
 protected WordAlignerBase(WordPairAlignerSettings settings)
 {
     _settings = settings;
     _settings.ReadOnly = true;
 }