UNPKG

geneea-nlp-client

Version:

The TypeScript Client for Geneea Interpretor G3 API.

23 lines (22 loc) 762 B
import { HasId } from "../../common/id"; /** Interface of items that can be assigned a sentiment value. */ interface HasSentiment extends HasId { sentiment: Sentiment | null; } /** Class encapsulating sentiment of a document, sentence or relation. */ declare class Sentiment { mean: number; label: string; positive: number; negative: number; /** * * @param mean Average sentiment. * @param label Human readable label describing the average sentiment. * @param positive Average sentiment of positive items. * @param negative Average sentiment of negative items. */ constructor(mean: number, label: string, positive: number, negative: number); toString(): string; } export { HasSentiment, Sentiment };