0.0.3 • Published 2 years ago

@nnlp-il/yap-js-client v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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.
0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago