Views
No views yet
anger · disgust · fear · joy · neutral · sadness · surprise1val classifier = TextEmotionClassifier.create(context)
2val results = classifier.classify("I am so stressed about these deadlines.")
3results.forEach { (emotion, score) ->
4 println("$emotion: ${"%.2f".format(score * 100)}%")
5}
6classifier.close()| File | Description |
|---|---|
model_quantized.onnx | INT8 quantized ONNX model |
tokenizer.json | Tokenizer vocabulary and rules |
tokenizer_config.json | Tokenizer configuration |
config.json | Model architecture config |
special_tokens_map.json | Special tokens |
merges.txt | BPE merge rules |
ModelDownloader.kt.