YAP Client
YAP was implemented to test the hypothesis on Joint Morpho-Syntactic Processing of Morphologically Rich Languages (MRLs) in a Transition Based Framework.
How to use
Install
npm i @nnlp-il/yap-js-client
Usage
const { YapClient } = require("@nnlp-il/yap-js-client");
const test = async () => {
const client = new YapClient('http://localhost:8001');
const result = await client.jointAnalysis("גנן גידל גנן בגן");
console.log(result);
}
test();
API
jointAnalysis(text)
text
Type: string
Hebrew text to analyze
Output
Object containing the following fields:
- Morphological Analysis Morphological Analysis shows shows all the options of interpretations for each word in the sentence.
- Morphological Disambiguation Morphological Disambiguation is the next step after a full Morphological Analysis. Since the Morphological Analysis gave us all the possible options of each word in the sentence Morphological Disambiguation narrows down on the most viable option for each woord in the sentence.
- Dependency Parsing Dependency Parsing is the process to analyze the grammatical structure in a sentence and find out related words as well as the type of the relationship between them. YAP returns a dependency tree of the inputted sentence.