Pilota model for hotel reviews
A model for Pilota trained with Hotel Review SCUD
scud
- Fine tuned model of t5-base-japanese-web (with Byte-fallback, 8K)
- The original model is distributed in the Apache License 2.0
scorer
- Fine tuned model of LINE DistilBERT Japanese
- The original model is distributed in the Apache License 2.0
Usage
Install Pilota
Prepare inputs
Command
echo -e 'εΉ³εθ¨εΏ΅ε ¬εγΈγεΎζ©εε γ§ι§θ»ε ΄γγγγδΎΏε©γͺγγγ«γ§γγ' | python -m pilota.convert.plain2request | tee input.jsonl
Output
{"context":null,"utterance":"εΉ³εθ¨εΏ΅εγΈγεΎζ©εε γ§ι§θ»ε ΄γγγγδΎΏε©γͺγγγ«γ§γγ","sentences":null,"meta":{}}
Feed it to Pilota
Command
pilota -m megagonlabs/pilota_hotel_review --batch_size 1 --outlen 60 --nbest 1 --beam 5 < input.jsonl
Output (Formatted by
jq .
)[ { "scuds_nbest": [ [ "εΉ³εθ¨εΏ΅εγΈβεΎζ©εε γ γ", "ι§θ»ε ΄γβγγγ", "δΎΏε©γͺγγγ«γ γ" ] ], "original_ranks": [ 0 ], "scores": [ 0.9465934991836548 ], "scores_detail": [ { "OK": 0.8219783306121826, "incorrect_none": 0.016287358477711678, "lack": 0.09869803488254547, "limited": 0.05470234900712967, "non_fluent": 0.04080141708254814, "untruth": 0.008109904825687408 } ], "sentence": "εΉ³εθ¨εΏ΅εγΈγεΎζ©εε γ§ι§θ»ε ΄γγγγδΎΏε©γͺγγγ«γ§γγ" } ]
License
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0)