wordmap
Version:
Multi-Lingual Word Alignment Prediction
15 lines (14 loc) • 481 B
TypeScript
import Alignment from "../structures/Alignment";
import AlignmentIndex from "./AlignmentIndex";
import NgramIndex from "./NgramIndex";
/**
* A collection of indexes for the alignment memory
*/
export default class AlignmentMemoryIndex {
private permutationIndex;
readonly alignmentFrequency: AlignmentIndex;
readonly sourceNgramFrequency: NgramIndex;
readonly targetNgramFrequency: NgramIndex;
constructor();
append(alignmentMemory: Alignment[]): void;
}