Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface LanguageDetectionSuccessResult

Package version

The result of a language detection action on a single document, containing a prediction of what language the document is written in.

Hierarchy

Index

Properties

Optional error

error: undefined

Discriminant to determine if this is an error result.

id

id: string

Unique, non-empty document identifier.

primaryLanguage

primaryLanguage: DetectedLanguage

The top detected language by confidence score.

Optional statistics

Statistics about the input document and how it was processed by the service. This property will have a value when includeStatistics is set to true in the client call.

warnings

warnings: DocumentWarning[]

An array of warning data corresponding to this document.

If no warnings were returned, this array will be empty.

Generated using TypeDoc