UNPKG

finnlp

Version:

Natural language processing in JavaScript

26 lines (25 loc) 700 B
import { ResultNode as DepNode } from "en-parse/dist/index"; import { NodeInterface as TreeInterface } from "en-parse/dist/index"; export declare class Run { raw: string; intercepted: string; sentences: SentenceResult[]; constructor(input: string); } export interface SentenceResult { sentence: string; tokens: string[]; lemmas: string[]; tags: string[]; deps: DepNode[]; depsTree: TreeInterface; confidence: number; } export declare const preProcessors: Array<PreProcessor>; export declare const postProcessors: Array<PostProcessor>; export interface PreProcessor { (input: string): string; } export interface PostProcessor { (input: Run): Run; }