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