RecognitionWord class

ru.yandex.speechkit

public  class  RecognitionWord 

A word or phrase that is part of a hypothesis.

This is the minimal object that a confidence score is shown for. The confidence score can be used to determine poorly recognized fragments.

Constructors

RecognitionWord(String text, float confidence)

Creates an object of the RecognitionWord class.

Methods

floatgetConfidence()

Recognition confidence score.

StringgetText()

A word or combination of words.

Constructor descriptions

RecognitionWord

public RecognitionWord (String text, float confidence)

Creates an object of the RecognitionWord class.

Parameters:
text

A word or combination of words.

confidence

Confidence score of the recognition hypothesis.

Method descriptions

getConfidence

public float getConfidence ()

Recognition confidence score.

The confidence score is a fractional number between 0 and 1 estimating the measure of confidence in the recognition result (1 indicates the highest level of confidence).

getText

public String getText ()

A word or combination of words.