intention_tester

Crates.iointention_tester
lib.rsintention_tester
version0.1.1
sourcesrc
created_at2019-03-11 10:07:46.860721
updated_at2019-03-11 10:55:00.415038
descriptionA tool to test intention detection API
homepagehttps://github.com/QwantResearch/intention_tester
repositoryhttps://github.com/QwantResearch/intention_tester
max_upload_size
id120039
size17,143
Jean-Benoit Griesner (jbgriesner)

documentation

README

Intention tester

  • Test intention/category detection api against test files (in the ./data folder).

  • You can run intention_tester either manually or with Docker.

Install & Run the binary (Recommended method)

  • if you have rust and cargo installed on your machine, you can install the intention_tester tool as follows:
cargo install intention_tester
  • it will by default download the crate, compile the binary target (in ''release'' mode, so it might take a while) and copy them into the ~/.cargo/bin/ directory.
  • then you can simply run the tool as follows:
intention_tester -c <api-url> -i <data folder path to csv test files>

Run with Docker (if you don't have rust or cargo)

  • first you have to add some csv files in the ./data folder if you want more tests, with the same schema as the basic.csv file test.
  • then build & run the intention_tester image:
docker build -t intention_tester:1.0 . & docker run --rm intention_tester:1.0 <api-url>
Commit count: 0

cargo fmt