taipa
Version:
Taiwanese morphological parsing library
33 lines • 866 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Node = exports.Document = void 0;
/** Parsing */
class Document {
/** Dependency relations. */
relations = new Array();
/** Nodes as stack or queue elements */
nodes = new Array();
}
exports.Document = Document;
class Node {
token;
/** The simple part-of-speech tag. */
pos = ''; // upos. universal pos.
/** The detailed, language-specific part-of-speech tag. */
tag = ''; // xpos
/** The base form of the word. */
lemma = '';
/** Syntactic dependnecy */
dep = ''; // deprel
/** The head of this token */
head = '';
/**
* Constructor of Token.
* @param token The text of the token
*/
constructor(token) {
this.token = token;
}
}
exports.Node = Node;
//# sourceMappingURL=document.js.map