Skip to content

Commit

Permalink
Merge pull request #783 from snipsco/release/0.19.5
Browse files Browse the repository at this point in the history
Release 0.19.5
  • Loading branch information
adrienball committed Apr 10, 2019
2 parents 020906f + dd18843 commit 52b17fb
Show file tree
Hide file tree
Showing 21 changed files with 588 additions and 689 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
# Changelog
All notable changes to this project will be documented in this file.

## [0.19.5]
### Added
- Advanced inference logging in the `CRFSlotFiller` [#776](https://github.com/snipsco/snips-nlu/pull/776)
- Improved failed linking error message after download of resources [#774](https://github.com/snipsco/snips-nlu/pull/774)
- Improve handling of ambiguous utterances in DeterministicIntentParser [#773](https://github.com/snipsco/snips-nlu/pull/773)

### Changed
- Remove normalization of confidence scores in intent classification [#782](https://github.com/snipsco/snips-nlu/pull/782)

### Fixed
- Fixed a crash due to missing resources when refitting the `CRFSlotFiller` [#771](https://github.com/snipsco/snips-nlu/pull/771)
- Fixed issue with egg fragments in download cli [#769](https://github.com/snipsco/snips-nlu/pull/769)
- Fixed an issue causing the `None` intent to be ignored when using the `parse` API in conjunction with `intents` and `top_n` [#781](https://github.com/snipsco/snips-nlu/pull/781)

## [0.19.4] - 2019-03-06
### Added
- Support for Portuguese: "pt_pt" and "pt_br"
Expand Down Expand Up @@ -250,6 +264,7 @@ several commands.
- Fix compiling issue with `bindgen` dependency when installing from source
- Fix issue in `CRFSlotFiller` when handling builtin entities

[0.19.5]: https://github.com/snipsco/snips-nlu/compare/0.19.4...0.19.5
[0.19.4]: https://github.com/snipsco/snips-nlu/compare/0.19.3...0.19.4
[0.19.3]: https://github.com/snipsco/snips-nlu/compare/0.19.2...0.19.3
[0.19.2]: https://github.com/snipsco/snips-nlu/compare/0.19.1...0.19.2
Expand Down
2 changes: 1 addition & 1 deletion snips_nlu/__about__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
__email__ = "clement.doumouro@snips.ai, adrien.ball@snips.ai"
__license__ = "Apache License, Version 2.0"

__version__ = "0.19.4"
__version__ = "0.19.5"
__model_version__ = "0.19.0"

__download_url__ = "https://github.com/snipsco/snips-nlu-language-resources/releases/download"
Expand Down
13 changes: 9 additions & 4 deletions snips_nlu/cli/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ def download(resource_name, direct=False,
*pip_args): # pylint:disable=keyword-arg-before-vararg
"""Download compatible language resources"""
if direct:
url_tail = '{r}/{r}.tar.gz#egg={r}'.format(r=resource_name)
components = resource_name.split("-")
name = "".join(components[:-1])
version = components[-1]
url_tail = '{n}-{v}/{n}-{v}.tar.gz#egg={n}=={v}'.format(
n=name, v=version)
download_url = __about__.__download_url__ + '/' + url_tail
dl = install_remote_package(download_url, pip_args)
if dl != 0:
Expand Down Expand Up @@ -79,9 +83,10 @@ def _download_and_link(resource_alias, resource_fullname, compatibility,
pretty_print("%s --> %s" % (str(resources_dir), str(link_path)),
title="Linking successful",
level=PrettyPrintLevel.SUCCESS)
except: # pylint:disable=bare-except
except OSError as e: # pylint:disable=bare-except
pretty_print(
"Creating a shortcut link for '%s' didn't work." % resource_alias,
"Creating a shortcut link for '%s' didn't work: %s"
% (resource_alias, repr(e)),
title="The language resources were successfully downloaded, "
"however linking failed.",
level=PrettyPrintLevel.WARNING)
level=PrettyPrintLevel.ERROR)
100 changes: 21 additions & 79 deletions snips_nlu/default_configs/config_de.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,7 @@
"n": 1
},
"factory_name": "ngram",
"offsets": [
-2,
-1,
0,
1,
2
]
"offsets": [-2, -1, 0, 1, 2]
},
{
"args": {
Expand All @@ -38,125 +32,73 @@
"n": 2
},
"factory_name": "ngram",
"offsets": [
-2,
1
]
"offsets": [-2, 1]
},
{
"args": {
"prefix_size": 2
},
"factory_name": "prefix",
"offsets": [
0
]
"offsets": [0]
},
{
"args": {
"prefix_size": 5
},
"args": {"prefix_size": 5},
"factory_name": "prefix",
"offsets": [
0
]
"offsets": [0]
},
{
"args": {
"suffix_size": 2
},
"args": {"suffix_size": 2},
"factory_name": "suffix",
"offsets": [
0
]
"offsets": [0]
},
{
"args": {
"suffix_size": 5
},
"args": {"suffix_size": 5},
"factory_name": "suffix",
"offsets": [
0
]
"offsets": [0]
},
{
"args": {},
"factory_name": "is_digit",
"offsets": [
-1,
0,
1
]
"offsets": [-1, 0, 1]
},
{
"args": {},
"factory_name": "is_first",
"offsets": [
-2,
-1,
0
]
"offsets": [-2, -1, 0]
},
{
"args": {},
"factory_name": "is_last",
"offsets": [
0,
1,
2
]
"offsets": [0, 1, 2]
},
{
"args": {
"n": 1
},
"args": {"n": 1},
"factory_name": "shape_ngram",
"offsets": [
0
]
"offsets": [0]
},
{
"args": {
"n": 2
},
"args": {"n": 2},
"factory_name": "shape_ngram",
"offsets": [
-1,
0
]
"offsets": [-1, 0]
},
{
"args": {
"n": 3
},
"args": {"n": 3},
"factory_name": "shape_ngram",
"offsets": [
-1
]
"offsets": [-1]
},
{
"args": {
"use_stemming": True,
"tagging_scheme_code": 2
},
"factory_name": "entity_match",
"offsets": [
-2,
-1,
0
],
"offsets": [-2, -1, 0],
"drop_out": 0.5
},
{
"args": {
"tagging_scheme_code": 1
},
"args": {"tagging_scheme_code": 1},
"factory_name": "builtin_entity_match",
"offsets": [
-2,
-1,
0
]
"offsets": [-2, -1, 0]
}
],
"crf_args": {
Expand Down
79 changes: 15 additions & 64 deletions snips_nlu/default_configs/config_en.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,7 @@
"n": 1
},
"factory_name": "ngram",
"offsets": [
-2,
-1,
0,
1,
2
]
"offsets": [-2, -1, 0, 1, 2]
},
{
"args": {
Expand All @@ -38,102 +32,59 @@
"n": 2
},
"factory_name": "ngram",
"offsets": [
-2,
1
]
"offsets": [-2, 1]
},
{
"args": {},
"factory_name": "is_digit",
"offsets": [
-1,
0,
1
]
"offsets": [-1, 0, 1]
},
{
"args": {},
"factory_name": "is_first",
"offsets": [
-2,
-1,
0
]
"offsets": [-2, -1, 0]
},
{
"args": {},
"factory_name": "is_last",
"offsets": [
0,
1,
2
]
"offsets": [0, 1, 2]
},
{
"args": {
"n": 1
},
"args": {"n": 1},
"factory_name": "shape_ngram",
"offsets": [
0
]
"offsets": [0]
},
{
"args": {
"n": 2
},
"args": {"n": 2},
"factory_name": "shape_ngram",
"offsets": [
-1,
0
]
"offsets": [-1, 0]
},
{
"args": {
"n": 3
},
"args": {"n": 3},
"factory_name": "shape_ngram",
"offsets": [
-1
]
"offsets": [-1]
},
{
"args": {
"use_stemming": True,
"tagging_scheme_code": 2
},
"factory_name": "entity_match",
"offsets": [
-2,
-1,
0
],
"offsets": [-2, -1, 0],
"drop_out": 0.5
},
{
"args": {
"tagging_scheme_code": 1
},
"args": {"tagging_scheme_code": 1},
"factory_name": "builtin_entity_match",
"offsets": [
-2,
-1,
0
]
"offsets": [-2, -1, 0]
},
{
"args": {
"cluster_name": "brown_clusters",
"use_stemming": False
},
"factory_name": "word_cluster",
"offsets": [
-2,
-1,
0,
1
]
"offsets": [-2, -1, 0, 1]
}
],
"crf_args": {
Expand Down
Loading

0 comments on commit 52b17fb

Please sign in to comment.