wordmap
Version:
Multi-Lingual Word Alignment Prediction
25 lines (24 loc) • 746 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const PermutationIndex_1 = require("./PermutationIndex");
/**
* A collection of indexes for the alignment memory
*/
class AlignmentMemoryIndex {
constructor() {
this.permutationIndex = new PermutationIndex_1.default();
}
get alignmentFrequency() {
return this.permutationIndex.alignmentFrequency;
}
get sourceNgramFrequency() {
return this.permutationIndex.sourceNgramFrequency;
}
get targetNgramFrequency() {
return this.permutationIndex.targetNgramFrequency;
}
append(alignmentMemory) {
this.permutationIndex.addAlignments(alignmentMemory);
}
}
exports.default = AlignmentMemoryIndex;