@nnlp-il/yap-js-client
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

YAP Client

npm package Issues

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.

Readme

Keywords

Package Sidebar

Install

npm i @nnlp-il/yap-js-client

Weekly Downloads

0

Version

0.0.3

License

MIT

Unpacked Size

11.1 kB

Total Files

13

Last publish

Collaborators

  • roiwebiks
  • shachar_m