wordmap
Version:
Multi-Lingual Word Alignment Prediction
16 lines (15 loc) • 625 B
TypeScript
import AlgorithmInterface from "./AlgorithmInterface";
import AlignmentMemoryIndex from "./index/AlignmentMemoryIndex";
import CorpusIndex from "./index/CorpusIndex";
import UnalignedSentenceIndex from "./index/UnalignedSentenceIndex";
import Prediction from "./structures/Prediction";
export default abstract class Algorithm implements AlgorithmInterface {
/**
* The name of the algorithm
*/
abstract name: string;
/**
* Executes the algorithm
*/
abstract execute(prediction: Prediction, cIndex: CorpusIndex, saIndex: AlignmentMemoryIndex, usIndex: UnalignedSentenceIndex): Prediction;
}