Giter Club home page Giter Club logo

rustling-ontology's Introduction

rustling-ontology

Build Status Build Status

Probabilistic parser for entity detection based on Rustling (https://github.com/snipsco/rustling)

Rustling is a rust port of https://github.com/facebookincubator/duckling

Supported Output

Output OutputKind
Integer Number
Float Number
Ordinal Ordinal
Temperature Temperature
Time Time
TimeInterval Time
AmountOfMoney AmountOfMoney
Duration Duration

Benches

If you want to bench the project you will need to an environment variable named SNIPS_RUSTLING_BENCH_INPUT with one of these values:

Language File
English en.json
French fr.json
Korean ko.json
German de.json

Get started

Install

  • Open a terminal

  • Install rust

curl https://sh.rustup.rs -sSf | sh

Select the default installation and add cargo to your source path with source $HOME/.cargo/env. You can also add this line export PATH=$PATH:$HOME/.cargo/bin to your shell configuration .bashrc or zshrc (depending on your terminal)

  • Clone this repository:
git clone [email protected]:snipsco/rustling-ontology.git

Build the library

cd rustling-ontology
cargo build

It can take a while because the training for all languages takes time.

Use the command line to run Rustling

First, go to the cli folder

cd cli

Second, run this command

cargo run -- --lang en parse "tomorrow morning"

If you want to reduce the scope of rustling, you can run:

cargo run -- --lang fr parse "reserve un restaurant demain matin pour cinq personnes" -k Time,Number

If you want to see how the sentence has been parsed by rustling, you can run:

cargo run -- --lang en play "monday september the twenty sixth"

In this mode, the reference date used is the current date

Use the command line to debug Rustling

go to the cli-debug folder

cd cli-debug

run this command

cargo run -- --lang en parse "tomorrow morning"

It will display how the sentence has been parsed by rustling without any ML model. (Faster to compile because the training is not done)

In debug mode, the reference date used is 2013/02/12

License

Apache 2.0/MIT

All original work licensed under either of

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

rustling-ontology's People

Contributors

johannasimoens avatar rosasternsonos avatar hdlj avatar kali avatar adrienball avatar rosastern avatar odiledevismessonos avatar clemdoum avatar anaisaurus avatar hywan avatar jimregan avatar thadguidry avatar arekkusuva avatar proemke avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.