Edit model card

Pilota model for hotel reviews

A model for Pilota trained with Hotel Review SCUD

Usage

  1. Install Pilota

  2. Prepare inputs

    • Command

      echo -e 'εΉ³ε’Œθ¨˜εΏ΅ε…¬εœ’γΈγ‚‚εΎ’ζ­©εœε†…γ§ι§θ»Šε ΄γ‚‚γ‚γ‚Šγ€δΎΏεˆ©γͺホテルです。' | python -m pilota.convert.plain2request | tee input.jsonl
      
    • Output

      {"context":null,"utterance":"εΉ³ε’Œθ¨˜εΏ΅εœ’γΈγ‚‚εΎ’ζ­©εœε†…γ§ι§θ»Šε ΄γ‚‚γ‚γ‚Šγ€δΎΏεˆ©γͺホテルです。","sentences":null,"meta":{}}
      
  3. 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)

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Examples
Unable to determine this model's library. Check the docs .