Causes the current thread to wait until it is awakened, typically
by being notified or interrupted, or until a
certain amount of real time has elapsed.
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted, or until a
certain amount of real time has elapsed.
Sets a language locale for the processed text and assigns a confidence score. If the
locale has already been set, this updates it.
Parameters
locale
ULocale: This value cannot be null.
confidenceScore
float: a value from 0 (low confidence) to 1 (high confidence).
0 implies the locale does not exist for the processed text.
Values greater than 1 are clamped to 1.
Value is between 0.0 and 1.0 inclusive
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.