Downloads · 30 days
0
megagonlabs/pilota_scud2query
pilota_scud2query is a machine learning model from megagonlabs. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
A model for Pilota trained with <https://github.com/megagonlabs/scud2query.
Downloads · 30 days
0
Access
Public
Updated Jul 6, 2023
Repo size
1.1 GB
Likes
0
Public
Click a slice to open those files.
.bin1.1 GB · 100%
From the Hugging Face model README
A model for Pilota trained with https://github.com/megagonlabs/scud2query.
scud
scorer
Install Pilota
Prepare inputs
Command
echo -e '部屋に冷蔵庫があると良い。レンタカーサービスがあるホテルを【customer】が希望する。' | python -m pilota.convert.plain2request | tee input.jsonl
Output
{"context":null,"utterance":"部屋に冷蔵庫があると良い。レンタカーサービスがあるホテルを【customer】が希望する。","sentences":null,"meta":{}}
Feed it to Pilota
Command
pilota -m megagonlabs/pilota_scud2query --batch_size 1 --outlen 60 --nbest 1 --beam 5 < input.jsonl
Output (Formatted by jq .)
[
{
"scuds_nbest": [
[
"部屋に冷蔵庫がある。"
]
],
"original_ranks": [
0
],
"scores": [
0.9769772589206696
],
"scores_detail": [
{
"OK": 0.9232575297355652,
"incorrect_none": 0.0034886503126472235,
"lack": 0.023772092536091805,
"limited": 0.013821585103869438,
"untruth": 0.04332486167550087
}
],
"sentence": "部屋に冷蔵庫があると良い。"
},
{
"scuds_nbest": [
[
"レンタカーサービスがあるホテルだ。"
]
],
"original_ranks": [
0
],
"scores": [
0.9876023113727569
],
"scores_detail": [
{
"OK": 0.9586743712425232,
"incorrect_none": 0.004059707745909691,
"lack": 0.0024317132774740458,
"limited": 0.007630097679793835,
"untruth": 0.04025880992412567
}
],
"sentence": "レンタカーサービスがあるホテルを【customer】が希望する。"
}
]
Apache License 2.0