Skip to content

Commit

Permalink
Merge branch 'tf2' into tf2-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tabergma committed Jan 29, 2020
2 parents c11a077 + 3ef62cb commit 65dead9
Show file tree
Hide file tree
Showing 87 changed files with 1,705 additions and 551 deletions.
5 changes: 0 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,6 @@ jobs:
- git remote set-url --push origin "[email protected]:$TRAVIS_REPO_SLUG"
- export ${!TRAVIS*}
- sphinx-versioning push docs docs . -- -b dirhtml -A html_theme=rasabaster
- stage: docs-netlify
if: branch = master AND type != pull_request OR tag IS present
install: skip
script:
- curl -X POST -d "docs" https://api.netlify.com/build_hooks/${NETLIFY_HOOK_ID}
- stage: deploy
name: "Deploy to PyPI"
python: 3.6
Expand Down
70 changes: 68 additions & 2 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,80 @@ This project adheres to `Semantic Versioning`_ starting with version 1.0.

.. towncrier release notes start
[1.7.0] - 2020-01-29
^^^^^^^^^^^^^^^^^^^^

Deprecations and Removals
-------------------------
- `#4964 <https://github.com/rasahq/rasa/issues/4964>`_: The endpoint ``/conversations/<conversation_id>/execute`` is now deprecated. Instead, users should use
the ``/conversations/<conversation_id>/trigger_intent`` endpoint and thus trigger intents instead of actions.
- `#4978 <https://github.com/rasahq/rasa/issues/4978>`_: Remove option ``use_cls_token`` from tokenizers and option ``return_sequence`` from featurizers.

By default all tokenizer add a special token (``__CLS__``) to the end of the list of tokens.
This token will be used to capture the features of the whole utterance.

The featurizers will return a matrix of size (number-of-tokens x feature-dimension) by default.
This allows to train sequence models.
However, the feature vector of the ``__CLS__`` token can be used to train non-sequence models.
The corresponding classifier can decide what kind of features to use.

Features
--------
- `#400 <https://github.com/rasahq/rasa/issues/400>`_: Rename ``templates`` key in domain to ``responses``.

``templates`` key will still work for backwards compatibility but will raise a future warning.
- `#4902 <https://github.com/rasahq/rasa/issues/4902>`_: Added a new configuration parameter, ``ranking_length`` to the ``EmbeddingPolicy``, ``EmbeddingIntentClassifier``,
and ``ResponseSelector`` classes.
- `#4964 <https://github.com/rasahq/rasa/issues/4964>`_: External events and reminders now trigger intents (and entities) instead of actions.

Add new endpoint ``/conversations/<conversation_id>/trigger_intent``, which lets the user specify an intent and a
list of entities that is injected into the conversation in place of a user message. The bot then predicts and
executes a response action.
- `#4978 <https://github.com/rasahq/rasa/issues/4978>`_: Add ``ConveRTTokenizer``.

The tokenizer should be used whenever the ``ConveRTFeaturizer`` is used.

Every tokenizer now supports the following configuration options:
``intent_tokenization_flag``: Flag to check whether to split intents (default ``False``).
``intent_split_symbol``: Symbol on which intent should be split (default ``_``)

Improvements
------------
- `#1988 <https://github.com/rasahq/rasa/issues/1988>`_: Remove the need of specifying utter actions in the ``actions`` section explicitly if these actions are already
listed in the ``templates`` section.
- `#4877 <https://github.com/rasahq/rasa/issues/4877>`_: Entity examples that have been extracted using an external extractor are excluded
from Markdown dumping in ``MarkdownWriter.dumps()``. The excluded external extractors
are ``DucklingHTTPExtractor`` and ``SpacyEntityExtractor``.
- `#4902 <https://github.com/rasahq/rasa/issues/4902>`_: The ``EmbeddingPolicy``, ``EmbeddingIntentClassifier``, and ``ResponseSelector`` now by default normalize confidence
levels over the top 10 results. See :ref:`migration-to-rasa-1.7` for more details.
- `#4964 <https://github.com/rasahq/rasa/issues/4964>`_: ``ReminderCancelled`` can now cancel multiple reminders if no name is given. It still cancels a single
reminder if the reminder's name is specified.

Bugfixes
--------
- `#4774 <https://github.com/rasahq/rasa/issues/4774>`_: Requests to ``/model/train`` do not longer block other requests to the Rasa server.
- `#4896 <https://github.com/rasahq/rasa/issues/4896>`_: Fixed default behavior of ``rasa test core --evaluate-model-directory`` when called without ``--model``. Previously, the latest model file was used as ``--model``. Now the default model directory is used instead.

New behavior of ``rasa test core --evaluate-model-directory`` when given an existing file as argument for ``--model``: Previously, this led to an error. Now a warning is displayed and the directory containing the given file is used as ``--model``.
- `#5040 <https://github.com/rasahq/rasa/issues/5040>`_: Updated the dependency ``networkx`` from 2.3.0 to 2.4.0. The old version created incompatibilities when using pip.

There is an imcompatibility between Rasa dependecy requests 2.22.0 and the own depedency from Rasa for networkx raising errors upon pip install. There is also a bug corrected in ``requirements.txt`` which used ``~=`` instead of ``==``. All of these are fixed using networkx 2.4.0.
- `#5057 <https://github.com/rasahq/rasa/issues/5057>`_: Fixed compatibility issue with Microsoft Bot Framework Emulator if ``service_url`` lacked a trailing ``/``.
- `#5092 <https://github.com/rasahq/rasa/issues/5092>`_: DynamoDB tracker store decimal values will now be rounded on save. Previously values exceeding 38 digits caused an unhandled error.

Miscellaneous internal changes
------------------------------
- #4458, #4664, #4780, #5029


[1.6.2] - 2020-01-28
^^^^^^^^^^^^^^^^^^^^

Improvements
------------
- `#4989 <https://github.com/rasahq/rasa/issues/4989>`_: Switching back to a TensorFlow release which only includes CPU support to reduce the
- `#4994 <https://github.com/rasahq/rasa/issues/4994>`_: Switching back to a TensorFlow release which only includes CPU support to reduce the
size of the dependencies. If you want to use the TensorFlow package with GPU support,
please run ``tensorflow-gpu==1.15.0``.
please run ``pip install tensorflow-gpu==1.15.0``.

Bugfixes
--------
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@ We use `sphinx-versioning` to build docs for tagged versions and for the master
The static site that gets built is pushed to the `docs` branch of this repo, which doesn't contain
any code, only the site.

We host the site on netlify. When there is a reason to update the docs (e.g. master has changed or we have
tagged a new version) we trigger a webhook on netlify (see `.travis.yml`).
We host the site on netlify. On master branch builds (see `.travis.yml`), we push the built docs to the `docs`
branch. Netlify automatically re-deploys the docs pages whenever there is a change to that branch.


## License
Expand Down
2 changes: 0 additions & 2 deletions changelog/1988.improvement.rst

This file was deleted.

3 changes: 0 additions & 3 deletions changelog/400.feature.rst

This file was deleted.

2 changes: 0 additions & 2 deletions changelog/4458.misc.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/4664.misc.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/4774.bugfix.rst

This file was deleted.

3 changes: 0 additions & 3 deletions changelog/4877.improvement.rst

This file was deleted.

3 changes: 0 additions & 3 deletions changelog/4896.bugfix.rst

This file was deleted.

2 changes: 0 additions & 2 deletions changelog/4902.feature.rst

This file was deleted.

2 changes: 0 additions & 2 deletions changelog/4902.improvement.rst

This file was deleted.

5 changes: 0 additions & 5 deletions changelog/4964.feature.rst

This file was deleted.

2 changes: 0 additions & 2 deletions changelog/4964.improvement.rst

This file was deleted.

2 changes: 0 additions & 2 deletions changelog/4964.removal.rst

This file was deleted.

7 changes: 0 additions & 7 deletions changelog/4978.feature.rst

This file was deleted.

9 changes: 0 additions & 9 deletions changelog/4978.removal.rst

This file was deleted.

5 changes: 0 additions & 5 deletions changelog/5029.misc.rst

This file was deleted.

3 changes: 0 additions & 3 deletions changelog/5040.bugfix.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/5057.bugfix.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/5092.bugfix.rst

This file was deleted.

2 changes: 1 addition & 1 deletion data/test_domains/default_with_slots_and_no_actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ slots:
name:
type: text

templates:
responses:
utter_greet:
- text: "hey there {name}!" # {name} will be filled by slot (same name) or by custom action
utter_channel:
Expand Down
Binary file added docs/_static/images/intent_mappings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Understand messages, hold conversations, and connect to messaging channels and A

user-guide/installation
user-guide/rasa-tutorial
user-guide/building-assistants
user-guide/command-line-interface
user-guide/architecture
user-guide/messaging-and-voice-channels
Expand Down
4 changes: 3 additions & 1 deletion docs/nlu/components.rst
Original file line number Diff line number Diff line change
Expand Up @@ -807,6 +807,8 @@ MitieEntityExtractor
pipeline:
- name: "MitieEntityExtractor"
.. _SpacyEntityExtractor:

SpacyEntityExtractor
~~~~~~~~~~~~~~~~~~~~

Expand Down Expand Up @@ -1004,5 +1006,5 @@ DucklingHTTPExtractor
# needed to calculate dates from relative expressions like "tomorrow"
timezone: "Europe/Berlin"
# Timeout for receiving response from http url of the running duckling server
# if not set the default timeout of duckling http url is set to 3 seconds.
# if not set the default timeout of duckling http url is set to 3 seconds.
timeout : 3
Loading

0 comments on commit 65dead9

Please sign in to comment.