Skip to content

Commit 8f93669

Browse files
authored
Merge pull request RasaHQ#5738 from RasaHQ/prepare-release-1.10.0
Prepare release 1.10.0
2 parents 84a262e + c87540f commit 8f93669

32 files changed

+275
-221
lines changed

CHANGELOG.rst

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,117 @@ This project adheres to `Semantic Versioning`_ starting with version 1.0.
1717

1818
.. towncrier release notes start
1919
20+
[1.10.0] - 2020-04-28
21+
^^^^^^^^^^^^^^^^^^^^^
22+
23+
Features
24+
--------
25+
- `#3765 <https://github.com/rasahq/rasa/issues/3765>`_: Add support for entities with roles and grouping of entities in Rasa NLU.
26+
27+
You can now define a role and/or group label in addition to the entity type for entities.
28+
Use the role label if an entity can play different roles in your assistant.
29+
For example, a city can be a destination or a departure city.
30+
The group label can be used to group multiple entities together.
31+
For example, you could group different pizza orders, so that you know what toppings goes with which pizza and
32+
what size which pizza has.
33+
For more details see :ref:`entities-roles-groups`.
34+
35+
To fill slots from entities with a specific role/group, you need to either use forms or use a custom action.
36+
We updated the tracker method ``get_latest_entity_values`` to take an optional role/group label.
37+
If you want to use a form, you can add the specific role/group label of interest to the slot mapping function
38+
``from_entity`` (see :ref:`forms`).
39+
40+
.. note::
41+
42+
Composite entities are currently just supported by the :ref:``diet-classifier`` and :ref:``CRFEntityExtractor``.
43+
- `#5465 <https://github.com/rasahq/rasa/issues/5465>`_: Update training data format for NLU to support entities with a role or group label.
44+
45+
You can now specify synonyms, roles, and groups of entities using the following data format:
46+
Markdown:
47+
48+
.. code-block:: none
49+
50+
[LA]{"entity": "location", "role": "city", "group": "CA", "value": "Los Angeles"}
51+
52+
JSON:
53+
54+
.. code-block:: none
55+
56+
"entities": [
57+
{
58+
"start": 10,
59+
"end": 12,
60+
"value": "Los Angeles",
61+
"entity": "location",
62+
"role": "city",
63+
"group": "CA",
64+
}
65+
]
66+
67+
The markdown format ``[LA](location:Los Angeles)`` is deprecated. To update your training data file just
68+
execute the following command on the terminal of your choice:
69+
``sed -i .deprecated -E 's/\[(.*)\]\((.*):(.*)\)/\[\1\]\{"entity": "\2", "value": "\3"\}/g' nlu.md``
70+
71+
For more information about the new data format see :ref:`training-data-format`.
72+
73+
Improvements
74+
------------
75+
- `#2224 <https://github.com/rasahq/rasa/issues/2224>`_: Suppressed ``pika`` logs when establishing the connection. These log messages
76+
mostly happened when Rasa X and RabbitMQ were started at the same time. Since RabbitMQ
77+
can take a few seconds to initialize, Rasa X has to re-try until the connection is
78+
established.
79+
In case you suspect a different problem (such as failing authentication) you can
80+
re-enable the ``pika`` logs by setting the log level to ``DEBUG``. To run Rasa Open
81+
Source in debug mode, use the ``--debug`` flag. To run Rasa X in debug mode, set the
82+
environment variable ``DEBUG_MODE`` to ``true``.
83+
- `#3419 <https://github.com/rasahq/rasa/issues/3419>`_: Include the source filename of a story in the failed stories
84+
85+
Include the source filename of a story in the failed stories to make it easier to identify the file which contains the failed story.
86+
- `#5544 <https://github.com/rasahq/rasa/issues/5544>`_: Add confusion matrix and "confused_with" to response selection evaluation
87+
88+
If you are using ResponseSelectors, they now produce similiar outputs during NLU evaluation. Misclassfied responses are listed in a "confused_with" attribute in the evaluation report. Similiarily, a confusion matrix of all responses is plotted.
89+
- `#5578 <https://github.com/rasahq/rasa/issues/5578>`_: Added ``socketio`` to the compatible channels for :ref:`reminders-and-external-events`.
90+
- `#5595 <https://github.com/rasahq/rasa/issues/5595>`_: Update ``POST /model/train`` endpoint to accept retrieval action responses
91+
at the ``responses`` key of the JSON payload.
92+
- `#5627 <https://github.com/rasahq/rasa/issues/5627>`_: All Rasa Open Source images are now using Python 3.7 instead of Python 3.6.
93+
- `#5635 <https://github.com/rasahq/rasa/issues/5635>`_: Update dependencies based on the ``dependabot`` check.
94+
- `#5636 <https://github.com/rasahq/rasa/issues/5636>`_: Add dropout between ``FFNN`` and ``DenseForSparse`` layers in ``DIETClassifier``,
95+
``ResponseSelector`` and ``EmbeddingIntentClassifier`` controlled by ``use_dense_input_dropout`` config parameter.
96+
- `#5646 <https://github.com/rasahq/rasa/issues/5646>`_: ``DIETClassifier`` only counts as extractor in ``rasa test`` if it was actually trained for entity recognition.
97+
- `#5669 <https://github.com/rasahq/rasa/issues/5669>`_: Remove regularization gradient for variables that don't have prediction gradient.
98+
- `#5672 <https://github.com/rasahq/rasa/issues/5672>`_: Raise a warning in ``CRFEntityExtractor`` and ``DIETClassifier`` if entities are not correctly annotated in the
99+
training data, e.g. their start and end values do not match any start and end values of tokens.
100+
- `#5690 <https://github.com/rasahq/rasa/issues/5690>`_: Add ``full_retrieval_intent`` property to ``ResponseSelector`` rankings
101+
- `#5717 <https://github.com/rasahq/rasa/issues/5717>`_: Change default values for hyper-parameters in ``EmbeddingIntentClassifier`` and ``DIETClassifier``
102+
103+
Use ``scale_loss=False`` in ``DIETClassifier``. Reduce the number of dense dimensions for sparse features of text from 512 to 256 in ``EmbeddingIntentClassifier``.
104+
105+
Bugfixes
106+
--------
107+
- `#5230 <https://github.com/rasahq/rasa/issues/5230>`_: Fixed issue where posting to certain callback channel URLs would return a 500 error on successful posts due to invalid response format.
108+
- `#5475 <https://github.com/rasahq/rasa/issues/5475>`_: One word can just have one entity label.
109+
110+
If you are using, for example, ``ConveRTTokenizer`` words can be split into multiple tokens.
111+
Our entity extractors assign entity labels per token. So, it might happen, that a word, that was split into two tokens,
112+
got assigned two different entity labels. This is now fixed. One word can just have one entity label at a time.
113+
- `#5509 <https://github.com/rasahq/rasa/issues/5509>`_: An entity label should always cover a complete word.
114+
115+
If you are using, for example, ``ConveRTTokenizer`` words can be split into multiple tokens.
116+
Our entity extractors assign entity labels per token. So, it might happen, that just a part of a word has
117+
an entity label. This is now fixed. An entity label always covers a complete word.
118+
- `#5574 <https://github.com/rasahq/rasa/issues/5574>`_: Fixed an issue that happened when metadata is passed in a new session.
119+
120+
Now the metadata is correctly passed to the ActionSessionStart.
121+
- `#5672 <https://github.com/rasahq/rasa/issues/5672>`_: Updated Python dependency ``ruamel.yaml`` to ``>=0.16``. We recommend to use at least
122+
``0.16.10`` due to the security issue
123+
`CVE-2019-20478 <https://nvd.nist.gov/vuln/detail/CVE-2019-20478>`_ which is present in
124+
in prior versions.
125+
126+
Miscellaneous internal changes
127+
------------------------------
128+
- #5556, #5587, #5614, #5631, #5633
129+
130+
20131
[1.9.7] - 2020-04-23
21132
^^^^^^^^^^^^^^^^^^^^
22133

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ Releasing a new version is quite simple, as the packages are build and distribut
215215
- Once the tag with the new Rasa SDK release is pushed and the package appears on [pypi](https://pypi.org/project/rasa-sdk/), the dependency in the rasa repository can be resolved (see below).
216216
2. Switch to the branch you want to cut the release from (`master` in case of a major / minor, the current feature branch for patch releases)
217217
- Update the `rasa-sdk` entry in `pyproject.toml` with the new release version and run `poetry update`. This creates a new `poetry.lock` file with all dependencies resolved.
218+
- Commit the changes with `git commit -am "bump rasa-sdk dependency"` but do not push them. They will be automatically picked up by the following step.
218219
3. Run `make release`
219220
4. Create a PR against master or the release branch (e.g. `1.2.x`)
220221
5. Once your PR is merged, tag a new release (this SHOULD always happen on master or release branches), e.g. using

changelog/3419.improvement.rst

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

changelog/3765.feature.rst

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

changelog/5230.bugfix.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog/5465.feature.rst

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

changelog/5475.bugfix.rst

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

changelog/5509.bugfix.rst

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

changelog/5544.improvement.rst

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

changelog/5556.misc.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)