Skip to content

Commit 52b17fb

Browse files
authored
Merge pull request #783 from snipsco/release/0.19.5
Release 0.19.5
2 parents 020906f + dd18843 commit 52b17fb

21 files changed

+588
-689
lines changed

CHANGELOG.md

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

4+
## [0.19.5]
5+
### Added
6+
- Advanced inference logging in the `CRFSlotFiller` [#776](https://github.com/snipsco/snips-nlu/pull/776)
7+
- Improved failed linking error message after download of resources [#774](https://github.com/snipsco/snips-nlu/pull/774)
8+
- Improve handling of ambiguous utterances in DeterministicIntentParser [#773](https://github.com/snipsco/snips-nlu/pull/773)
9+
10+
### Changed
11+
- Remove normalization of confidence scores in intent classification [#782](https://github.com/snipsco/snips-nlu/pull/782)
12+
13+
### Fixed
14+
- Fixed a crash due to missing resources when refitting the `CRFSlotFiller` [#771](https://github.com/snipsco/snips-nlu/pull/771)
15+
- Fixed issue with egg fragments in download cli [#769](https://github.com/snipsco/snips-nlu/pull/769)
16+
- 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)
17+
418
## [0.19.4] - 2019-03-06
519
### Added
620
- Support for Portuguese: "pt_pt" and "pt_br"
@@ -250,6 +264,7 @@ several commands.
250264
- Fix compiling issue with `bindgen` dependency when installing from source
251265
- Fix issue in `CRFSlotFiller` when handling builtin entities
252266

267+
[0.19.5]: https://github.com/snipsco/snips-nlu/compare/0.19.4...0.19.5
253268
[0.19.4]: https://github.com/snipsco/snips-nlu/compare/0.19.3...0.19.4
254269
[0.19.3]: https://github.com/snipsco/snips-nlu/compare/0.19.2...0.19.3
255270
[0.19.2]: https://github.com/snipsco/snips-nlu/compare/0.19.1...0.19.2

snips_nlu/__about__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
__email__ = "clement.doumouro@snips.ai, adrien.ball@snips.ai"
1212
__license__ = "Apache License, Version 2.0"
1313

14-
__version__ = "0.19.4"
14+
__version__ = "0.19.5"
1515
__model_version__ = "0.19.0"
1616

1717
__download_url__ = "https://github.com/snipsco/snips-nlu-language-resources/releases/download"

snips_nlu/cli/download.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ def download(resource_name, direct=False,
2828
*pip_args): # pylint:disable=keyword-arg-before-vararg
2929
"""Download compatible language resources"""
3030
if direct:
31-
url_tail = '{r}/{r}.tar.gz#egg={r}'.format(r=resource_name)
31+
components = resource_name.split("-")
32+
name = "".join(components[:-1])
33+
version = components[-1]
34+
url_tail = '{n}-{v}/{n}-{v}.tar.gz#egg={n}=={v}'.format(
35+
n=name, v=version)
3236
download_url = __about__.__download_url__ + '/' + url_tail
3337
dl = install_remote_package(download_url, pip_args)
3438
if dl != 0:
@@ -79,9 +83,10 @@ def _download_and_link(resource_alias, resource_fullname, compatibility,
7983
pretty_print("%s --> %s" % (str(resources_dir), str(link_path)),
8084
title="Linking successful",
8185
level=PrettyPrintLevel.SUCCESS)
82-
except: # pylint:disable=bare-except
86+
except OSError as e: # pylint:disable=bare-except
8387
pretty_print(
84-
"Creating a shortcut link for '%s' didn't work." % resource_alias,
88+
"Creating a shortcut link for '%s' didn't work: %s"
89+
% (resource_alias, repr(e)),
8590
title="The language resources were successfully downloaded, "
8691
"however linking failed.",
87-
level=PrettyPrintLevel.WARNING)
92+
level=PrettyPrintLevel.ERROR)

snips_nlu/default_configs/config_de.py

Lines changed: 21 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,7 @@
2222
"n": 1
2323
},
2424
"factory_name": "ngram",
25-
"offsets": [
26-
-2,
27-
-1,
28-
0,
29-
1,
30-
2
31-
]
25+
"offsets": [-2, -1, 0, 1, 2]
3226
},
3327
{
3428
"args": {
@@ -38,125 +32,73 @@
3832
"n": 2
3933
},
4034
"factory_name": "ngram",
41-
"offsets": [
42-
-2,
43-
1
44-
]
35+
"offsets": [-2, 1]
4536
},
4637
{
4738
"args": {
4839
"prefix_size": 2
4940
},
5041
"factory_name": "prefix",
51-
"offsets": [
52-
0
53-
]
42+
"offsets": [0]
5443
},
5544
{
56-
"args": {
57-
"prefix_size": 5
58-
},
45+
"args": {"prefix_size": 5},
5946
"factory_name": "prefix",
60-
"offsets": [
61-
0
62-
]
47+
"offsets": [0]
6348
},
6449
{
65-
"args": {
66-
"suffix_size": 2
67-
},
50+
"args": {"suffix_size": 2},
6851
"factory_name": "suffix",
69-
"offsets": [
70-
0
71-
]
52+
"offsets": [0]
7253
},
7354
{
74-
"args": {
75-
"suffix_size": 5
76-
},
55+
"args": {"suffix_size": 5},
7756
"factory_name": "suffix",
78-
"offsets": [
79-
0
80-
]
57+
"offsets": [0]
8158
},
8259
{
8360
"args": {},
8461
"factory_name": "is_digit",
85-
"offsets": [
86-
-1,
87-
0,
88-
1
89-
]
62+
"offsets": [-1, 0, 1]
9063
},
9164
{
9265
"args": {},
9366
"factory_name": "is_first",
94-
"offsets": [
95-
-2,
96-
-1,
97-
0
98-
]
67+
"offsets": [-2, -1, 0]
9968
},
10069
{
10170
"args": {},
10271
"factory_name": "is_last",
103-
"offsets": [
104-
0,
105-
1,
106-
2
107-
]
72+
"offsets": [0, 1, 2]
10873
},
10974
{
110-
"args": {
111-
"n": 1
112-
},
75+
"args": {"n": 1},
11376
"factory_name": "shape_ngram",
114-
"offsets": [
115-
0
116-
]
77+
"offsets": [0]
11778
},
11879
{
119-
"args": {
120-
"n": 2
121-
},
80+
"args": {"n": 2},
12281
"factory_name": "shape_ngram",
123-
"offsets": [
124-
-1,
125-
0
126-
]
82+
"offsets": [-1, 0]
12783
},
12884
{
129-
"args": {
130-
"n": 3
131-
},
85+
"args": {"n": 3},
13286
"factory_name": "shape_ngram",
133-
"offsets": [
134-
-1
135-
]
87+
"offsets": [-1]
13688
},
13789
{
13890
"args": {
13991
"use_stemming": True,
14092
"tagging_scheme_code": 2
14193
},
14294
"factory_name": "entity_match",
143-
"offsets": [
144-
-2,
145-
-1,
146-
0
147-
],
95+
"offsets": [-2, -1, 0],
14896
"drop_out": 0.5
14997
},
15098
{
151-
"args": {
152-
"tagging_scheme_code": 1
153-
},
99+
"args": {"tagging_scheme_code": 1},
154100
"factory_name": "builtin_entity_match",
155-
"offsets": [
156-
-2,
157-
-1,
158-
0
159-
]
101+
"offsets": [-2, -1, 0]
160102
}
161103
],
162104
"crf_args": {

snips_nlu/default_configs/config_en.py

Lines changed: 15 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,7 @@
2222
"n": 1
2323
},
2424
"factory_name": "ngram",
25-
"offsets": [
26-
-2,
27-
-1,
28-
0,
29-
1,
30-
2
31-
]
25+
"offsets": [-2, -1, 0, 1, 2]
3226
},
3327
{
3428
"args": {
@@ -38,102 +32,59 @@
3832
"n": 2
3933
},
4034
"factory_name": "ngram",
41-
"offsets": [
42-
-2,
43-
1
44-
]
35+
"offsets": [-2, 1]
4536
},
4637
{
4738
"args": {},
4839
"factory_name": "is_digit",
49-
"offsets": [
50-
-1,
51-
0,
52-
1
53-
]
40+
"offsets": [-1, 0, 1]
5441
},
5542
{
5643
"args": {},
5744
"factory_name": "is_first",
58-
"offsets": [
59-
-2,
60-
-1,
61-
0
62-
]
45+
"offsets": [-2, -1, 0]
6346
},
6447
{
6548
"args": {},
6649
"factory_name": "is_last",
67-
"offsets": [
68-
0,
69-
1,
70-
2
71-
]
50+
"offsets": [0, 1, 2]
7251
},
7352
{
74-
"args": {
75-
"n": 1
76-
},
53+
"args": {"n": 1},
7754
"factory_name": "shape_ngram",
78-
"offsets": [
79-
0
80-
]
55+
"offsets": [0]
8156
},
8257
{
83-
"args": {
84-
"n": 2
85-
},
58+
"args": {"n": 2},
8659
"factory_name": "shape_ngram",
87-
"offsets": [
88-
-1,
89-
0
90-
]
60+
"offsets": [-1, 0]
9161
},
9262
{
93-
"args": {
94-
"n": 3
95-
},
63+
"args": {"n": 3},
9664
"factory_name": "shape_ngram",
97-
"offsets": [
98-
-1
99-
]
65+
"offsets": [-1]
10066
},
10167
{
10268
"args": {
10369
"use_stemming": True,
10470
"tagging_scheme_code": 2
10571
},
10672
"factory_name": "entity_match",
107-
"offsets": [
108-
-2,
109-
-1,
110-
0
111-
],
73+
"offsets": [-2, -1, 0],
11274
"drop_out": 0.5
11375
},
11476
{
115-
"args": {
116-
"tagging_scheme_code": 1
117-
},
77+
"args": {"tagging_scheme_code": 1},
11878
"factory_name": "builtin_entity_match",
119-
"offsets": [
120-
-2,
121-
-1,
122-
0
123-
]
79+
"offsets": [-2, -1, 0]
12480
},
12581
{
12682
"args": {
12783
"cluster_name": "brown_clusters",
12884
"use_stemming": False
12985
},
13086
"factory_name": "word_cluster",
131-
"offsets": [
132-
-2,
133-
-1,
134-
0,
135-
1
136-
]
87+
"offsets": [-2, -1, 0, 1]
13788
}
13889
],
13990
"crf_args": {

0 commit comments

Comments
 (0)