concepts-parser
Version:
Concepts Extracting from text
37 lines (36 loc) • 1.02 kB
TypeScript
import { IModel, Model } from "./types";
export interface IConcept extends IModel {
reset(value: string, index: number, lang: string): void;
value: string;
abbr: string;
isAbbr: boolean;
lang: string;
index: number;
endIndex: number;
endsWithDot: boolean;
endsWithNumber: boolean;
countWords: number;
atonicValue: string;
isValid(): boolean;
split(): Concept[];
}
export declare class Concept extends Model implements IConcept {
constructor(args: {
value: string;
index: number;
lang: string;
});
reset(value: string, index: number, lang: string): void;
isValid(): boolean;
split(): Concept[];
readonly value: string;
readonly lang: string;
abbr: string;
isAbbr: boolean;
readonly index: number;
readonly endIndex: number;
readonly countWords: number;
readonly atonicValue: string;
readonly endsWithDot: boolean;
readonly endsWithNumber: boolean;
}