Multi-Lingual Word Alignment Prediction
Word alignment prediction is the process of associating (mapping) words from some primary text with corresponding words in a secondary text. his tool uses statistical algorithms to determine which words or phrases in two texts are equivalent in meaning.
With wordMAP you can create amazing translation tools that:
yarn add wordmap
Here's a minimum setup example.
const map = new WordMAP();
map.appendAlignmentMemoryString("Tag", "day");
const source = "Guten Tag";
const target = "Good morning";
const suggestions = map.predict(source, target);
console.log(suggestions[0].toString());
// produces -> "0 [0|n:guten->n:good] [0|n:tag->n:morning]"
Existing tools require large data sets, complex running environments, and are usually limited to running in a server environment.
We need a tool that:
Want to learn more? Read WHITEPAPER.md.
When publishing to npm be sure to use the command yarn deploy
.
This will publish the proper module structure to npm.