yandex-predictor-kt
Asynchronous Yandex.Predictor API wrapper for Kotlin/JVM.
Installation
repositories {
maven(url = "https://jitpack.io")
}
dependencies {
implementation("dev.d1s:yandex-predictor-kt:$yandexPredictorVersion")
}
Example usage
const val API_KEY = "api key"
val predictor = yandexPredictor(API_KEY)
fun main() {
println(
runBlocking {
predictor.complete("Kotlin programming language is a great ")
.firstCompletion()
}
)
// "deal"
}