ccgjs
Version:
A combinatory categorial grammar (CCG) library for the web.
31 lines (30 loc) • 767 B
TypeScript
export declare enum DependencyHead {
Left = 0,
Right = 1
}
export declare type MachineReadableCCGNodeT = {
type?: string;
ccgCat: string;
head: DependencyHead;
dtrs: 0 | 1 | 2;
};
export declare type MachineReadableCCGNodeL = {
type?: string;
ccgCat: string;
modPOSTag: string;
origPOSTag: string;
word: string;
predArgCat: string;
};
export declare type MachineReadableCCG = {
node: MachineReadableCCGNodeT | MachineReadableCCGNodeL;
left?: MachineReadableCCG;
right?: MachineReadableCCG;
};
export default class Reader {
original: string;
isSucceed: boolean;
result?: MachineReadableCCG;
constructor(str?: string);
read(): MachineReadableCCG | boolean;
}