concepts-parser
Version:
Concepts Extracting from text
21 lines (20 loc) • 528 B
TypeScript
export declare type Dictionary<T> = {
[index: string]: T;
};
export declare type Context = {
lang: string;
text: string;
country?: string;
};
export interface IModel {
set<T>(fieldName: string, fieldValue?: T): void;
get<T>(fieldName: string): T;
toJSON(): any;
}
export declare abstract class Model implements IModel {
private _fields;
constructor(fields?: any);
get<T>(fieldName: string): T;
set<T>(fieldName: string, fieldValue?: T): void;
toJSON(): any;
}