Skip to content

Commit 4728835

Browse files
authored
Merge pull request #62 from snipsco/release/0.58.0
Release 0.58.0
2 parents fb1fea2 + 4e18109 commit 4728835

File tree

89 files changed

+15259
-3093
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+15259
-3093
lines changed

.appveyor.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
environment:
2+
matrix:
3+
- TARGET: x86_64-pc-windows-msvc
4+
5+
branches:
6+
only:
7+
- develop
8+
- master
9+
10+
install:
11+
- appveyor-retry appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
12+
- rustup-init.exe -y --default-host %TARGET%
13+
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
14+
- if defined MSYS2_BITS set PATH=%PATH%;C:\msys64\mingw%MSYS2_BITS%\bin
15+
- rustc -V
16+
- cargo -V
17+
- echo [workspace] > Cargo.toml
18+
- echo members = [ >> Cargo.toml
19+
- echo "snips-nlu-ffi", >> Cargo.toml
20+
- echo "snips-nlu-ffi/python/snips-nlu-python-ffi", >> Cargo.toml
21+
- echo "snips-nlu-lib", >> Cargo.toml
22+
- echo "snips-nlu-cli", >> Cargo.toml
23+
- echo ] >> Cargo.toml
24+
- ps: (Get-Content snips-nlu-ffi/python/snips-nlu-python-ffi/Cargo.toml) | ForEach-Object { $_ -replace "^snips-nlu-ffi = .*$", "snips-nlu-ffi = { path = `"../..`" }" } | Set-Content snips-nlu-ffi/python/snips-nlu-python-ffi/Cargo.toml
25+
26+
build: false
27+
28+
test_script:
29+
- cargo build --all --tests --benches
30+
- cargo test --all

.gitmodules

Lines changed: 0 additions & 3 deletions
This file was deleted.

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ before_install: . ./.travis/before_install.sh
6161

6262
install: ./.travis/install.sh
6363

64-
script: travis_wait 40 bash ./.travis/test.sh
64+
script: ./.travis/test.sh
6565

6666
git:
6767
depth: 10

.travis/install.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ members=[
99
"snips-nlu-ffi",
1010
"snips-nlu-ffi/python/snips-nlu-python-ffi",
1111
"snips-nlu-lib",
12-
"snips-nlu-resources",
13-
"snips-nlu-resources-packed"
12+
"snips-nlu-cli"
1413
]' > Cargo.toml
1514

1615
echo "Replacing snips-nlu-ffi url for local version"

.travis/test.sh

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,7 @@ source .travis/common.sh
55

66
if [ "${RUST_TESTS}" == "true" ]; then
77
echo "Running rust tests..."
8-
# Uncomment when snips-nlu-resources-packed will be replaced by an other solution that take less memory
9-
#cargo test --all || die "Rust tests failed"
10-
cargo run -p snips-nlu-lib \
11-
--example weather \
12-
snips-nlu-lib/examples/trained_assistant.json \
13-
"What will be the weather in London tomorrow at 8am?" \
14-
|| die "Rust example failed"
8+
cargo test --all || die "Rust tests failed"
159
fi
1610

1711
if [ "${PYTHON_TESTS}" == "true" ]; then

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
33

4+
## [0.58.0] - 2018-07-17`
5+
### Added
6+
- Interactive parsing CLI
7+
8+
### Changed
9+
- The `SnipsNluEngine` object is now loaded from a directory instead of a single json file
10+
(see https://github.com/snipsco/snips-nlu/releases/tag/0.16.0).
11+
- Language resources are now loaded *dynamically* from the trained engine directory instead of
12+
being statically hardcoded, reducing the binary size by 31Mb.
13+
14+
### Removed
15+
- `snips-nlu-resources` and `snips-nlu-resources-packed` crates no longer exists.
16+
- `FileBasedConfiguration`, `ZipBasedConfiguration` and `NluEngineConfigurationConvertible
17+
- Rust examples (replaced by interactive CLI).
18+
419
## [0.57.2] - 2018-07-12
520
### Fixed
621
- Conflict with bindgen dependency
@@ -64,6 +79,7 @@ All notable changes to this project will be documented in this file.
6479
- Rename python package to `snips_nlu_rust`
6580

6681

82+
[0.58.0]: https://github.com/snipsco/snips-nlu-rs/compare/0.57.2...0.58.0
6783
[0.57.2]: https://github.com/snipsco/snips-nlu-rs/compare/0.57.1...0.57.2
6884
[0.57.1]: https://github.com/snipsco/snips-nlu-rs/compare/0.57.0...0.57.1
6985
[0.57.0]: https://github.com/snipsco/snips-nlu-rs/compare/0.56.1...0.57.0

README.rst

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ Snips NLU Rust
44
.. image:: https://travis-ci.org/snipsco/snips-nlu-rs.svg?branch=develop
55
:target: https://travis-ci.org/snipsco/snips-nlu-rs
66

7+
.. image:: https://ci.appveyor.com/api/projects/status/github/snipsco/snips-nlu-rs?branch=develop&svg=true
8+
:target: https://ci.appveyor.com/project/snipsco/snips-nlu-rs
9+
710
Installation
811
------------
912

@@ -61,19 +64,24 @@ This repository only contains the inference part, in order to produce trained mo
6164
the `Snips NLU python library <https://github.com/snipsco/snips-nlu>`_.
6265

6366

64-
API Usage
65-
---------
67+
Interactive CLI and API Usage
68+
-----------------------------
69+
70+
The `rust interactive cli <snips-nlu-cli>`_ is a good example of to how to use ``snips-nlu-rs``.
6671

67-
Check out the `rust example <snips-nlu-lib/examples>`_ to see how to use Snips.
68-
Here is how you can run the example:
72+
Here is how you can run the interactive parsing cli:
6973

7074
.. code-block:: bash
7175
72-
git clone https://github.com/snipsco/snips-nlu-rs
73-
cd snips-nlu-rs
74-
git submodule update --init --recursive
75-
cd snips-nlu-lib
76-
cargo run --example weather examples/trained_assistant.json "What will be the weather in London tomorrow at 8am?"
76+
$ git clone https://github.com/snipsco/snips-nlu-rs
77+
$ cd snips-nlu-rs/snips-nlu-cli
78+
$ cargo run ../data/tests/models/trained_engine
79+
80+
Here we used a sample trained engine, which consists in two intents: ``MakeCoffee`` and ``MakeTea``.
81+
Thus, it will be able to parse queries like ``"Make me two cups of coffee please"`` or ``"I'd like a hot tea"``.
82+
83+
As mentioned in the previous section, you can train your own nlu engine with the
84+
`Snips NLU python library <https://github.com/snipsco/snips-nlu>`_.
7785

7886

7987
License

0 commit comments

Comments
 (0)