Skip to content

Commit

Permalink
Merge pull request #302 from snipsco/develop
Browse files Browse the repository at this point in the history
Release 0.8.7
  • Loading branch information
Adrien Ball authored Jun 16, 2017
2 parents 6a4a578 + 3e3afd8 commit 987ef87
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 3 deletions.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# Snips NLU (0.8.6)
# Snips NLU (0.8.7)

[![Build Status](https://jenkins2.snips.ai/buildStatus/icon?job=SDK/snips-nlu/master)](https://jenkins2.snips.ai/job/SDK/job/snips-nlu/view/Branches/job/master)

**Model Version (0.8.5)**

## Production Use

Python wheels of the `snips-nlu` package can be found on the nexus repository at this URL: https://nexus-repository.snips.ai/#browse/browse/components:pypi-internal
Expand Down Expand Up @@ -106,3 +108,12 @@ engine.fitted # True
```

where `dataset` is a dictionary which format is described [here](https://github.com/snipsco/snips-nlu/blob/develop/snips_nlu/tests/resources/sample_dataset.json)

### Versioning
The NLU Engine has a separated versioning for the underlying model:
``` python
import snips_nlu

model_version = snips_nlu.__model_version__
python_package_version = snips_nlu.__version__
```
2 changes: 2 additions & 0 deletions snips_nlu/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
from snips_nlu.resources import load_resources
from snips_nlu.utils import ROOT_PATH, PACKAGE_NAME

__model_version__ = "0.8.5"

VERSION_FILE_NAME = "__version__"

with io.open(os.path.join(ROOT_PATH, PACKAGE_NAME, VERSION_FILE_NAME)) as f:
Expand Down
2 changes: 1 addition & 1 deletion snips_nlu/__version__
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.8.6
0.8.7
17 changes: 16 additions & 1 deletion snips_nlu/tests/test_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from semantic_version import Version

from snips_nlu import __version__
from snips_nlu import __version__, __model_version__


class TestVersion(unittest.TestCase):
Expand All @@ -20,3 +20,18 @@ def version_should_be_semantic(self):

# Then
self.assertTrue(valid, "Version number '%s' is not semantically valid")

def model_version_should_be_semantic(self):
# Given
model_version = __model_version__

# When
valid = False
try:
Version(model_version)
valid = True
except ValueError:
pass

# Then
self.assertTrue(valid, "Version number '%s' is not semantically valid")

0 comments on commit 987ef87

Please sign in to comment.