Skip to content

Commit 151723d

Browse files
authored
Merge branch 'master' into include-source-in-failed-stories
2 parents ce112d8 + 5506209 commit 151723d

File tree

72 files changed

+3076
-1629
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+3076
-1629
lines changed

.github/ISSUE_TEMPLATE/ask_question.md

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

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: Bug report
33
about: Create a report to help us improve
44
title: ''
5-
labels: 'type:bug :bug:'
5+
labels: 'area:rasa-oss :ferris_wheel:,type:bug :bug:'
66
assignees: ''
77

88
---

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Ask a question
4+
url: https://forum.rasa.com/
5+
about: If you have a "How do I?" question please ask in the forum https://forum.rasa.com

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: Feature request
33
about: Suggest an idea on how to improve Rasa
44
title: ''
5-
labels: 'type:enhancement :sparkles:'
5+
labels: 'area:rasa-oss :ferris_wheel:,type:enhancement :sparkles:'
66
assignees: ''
77

88
---

.github/workflows/vulnerability-scan.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,4 @@ jobs:
4141
token: ${{ secrets.GITHUB_TOKEN }}
4242
image: ${{ env.IMAGE_WITH_POETRY_LOCK }}
4343
ignore_unfixed: true
44+
issue_label: "tool:trivy,type:vulnerability"

CHANGELOG.rst

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

1818
.. towncrier release notes start
1919
20+
[1.9.7] - 2020-04-23
21+
^^^^^^^^^^^^^^^^^^^^
22+
23+
Improvements
24+
------------
25+
- `#4606 <https://github.com/rasahq/rasa/issues/4606>`_: The stream reading timeout for ``rasa shell` is now configurable by using the
26+
environment variable ``RASA_SHELL_STREAM_READING_TIMEOUT_IN_SECONDS``.
27+
This can help to fix problems when using ``rasa shell`` with custom actions which run
28+
10 seconds or longer.
29+
30+
Bugfixes
31+
--------
32+
- `#5709 <https://github.com/rasahq/rasa/issues/5709>`_: Reverted changes in 1.9.6 that led to model incompatibility. Upgrade to 1.9.7 to fix
33+
``self.sequence_lengths_for(tf_batch_data[TEXT_SEQ_LENGTH][0]) IndexError: list index out of range``
34+
error without needing to retrain earlier 1.9 models.
35+
36+
Therefore, all 1.9 models `except for 1.9.6` will be compatible; a model trained on 1.9.6 will need
37+
to be retrained on 1.9.7.
38+
39+
2040
[1.9.6] - 2020-04-15
2141
^^^^^^^^^^^^^^^^^^^^
2242

changelog/3765.feature.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Add support for entities with roles and grouping of entities in Rasa NLU.
2+
3+
You can now define a role and/or group label in addition to the entity type for entities.
4+
Use the role label if an entity can play different roles in your assistant.
5+
For example, a city can be a destination or a departure city.
6+
The group label can be used to group multiple entities together.
7+
For example, you could group different pizza orders, so that you know what toppings goes with which pizza and
8+
what size which pizza has.
9+
For more details see :ref:`entities-roles-groups`.
10+
11+
To fill slots from entities with a specific role/group, you need to either use forms or use a custom action.
12+
We updated the tracker method ``get_latest_entity_values`` to take an optional role/group label.
13+
If you want to use a form, you can add the specific role/group label of interest to the slot mapping function
14+
``from_entity`` (see :ref:`forms``).
15+
16+
.. note::
17+
18+
Composite entities are currently just supported by the :ref:``diet-classifier`` and :ref:``CRFEntityExtractor``.

changelog/5230.bugfix.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Fixed issue where posting to certain callback channel URLs would return a 500 error on successful posts due to invalid response format
1+
Fixed issue where posting to certain callback channel URLs would return a 500 error on successful posts due to invalid response format.

changelog/5465.feature.rst

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
Update training data format for NLU to support entities with a role or group label.
2+
3+
You can now specify synonyms, roles, and groups of entities using the following data format:
4+
Markdown:
5+
6+
.. code-block:: none
7+
8+
[LA]{"entity": "location", "role": "city", "group": "CA", "value": "Los Angeles"}
9+
10+
JSON:
11+
12+
.. code-block:: none
13+
14+
"entities": [
15+
{
16+
"start": 10,
17+
"end": 12,
18+
"value": "Los Angeles",
19+
"entity": "location",
20+
"role": "city",
21+
"group": "CA",
22+
}
23+
]
24+
25+
The markdown format ``[LA](location:Los Angeles)`` is deprecated. To update your training data file just
26+
execute the following command on the terminal of your choice:
27+
``sed -i .deprecated -E 's/\[(.*)\]\((.*):(.*)\)/\[\1\]\{"entity": "\2", "value": "\3"\}/g' nlu.md``
28+
29+
For more information about the new data format see :ref:`training-data-format`.
File renamed without changes.

0 commit comments

Comments
 (0)