UNPKG

taipa

Version:

Taiwanese morphological parsing library

27 lines (26 loc) 694 B
import { Relation } from './dparser/relation'; /** Parsing */ export declare class Document { /** Dependency relations. */ relations: Array<Relation>; /** Nodes as stack or queue elements */ nodes: Array<Node>; } export declare class Node { token: string; /** The simple part-of-speech tag. */ pos: string; /** The detailed, language-specific part-of-speech tag. */ tag: string; /** The base form of the word. */ lemma: string; /** Syntactic dependnecy */ dep: string; /** The head of this token */ head: string; /** * Constructor of Token. * @param token The text of the token */ constructor(token: string); }