Skip to content

Commit c435b83

Browse files
committed
always convert values to strings
1 parent 5c443fe commit c435b83

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

rasa/core/test.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -231,12 +231,8 @@ def _clean_entity_results(
231231
ENTITY_ATTRIBUTE_VALUE,
232232
):
233233
if k in set(r):
234-
if (
235-
k == ENTITY_ATTRIBUTE_VALUE
236-
and EXTRACTOR in set(r)
237-
and r[EXTRACTOR] == "DucklingHTTPExtractor"
238-
):
239-
# convert values from duckling to strings for evaluation as
234+
if k == ENTITY_ATTRIBUTE_VALUE and EXTRACTOR in set(r):
235+
# convert values to strings for evaluation as
240236
# target values are all of type string
241237
r[k] = str(r[k])
242238
cleaned_entity[k] = r[k]

0 commit comments

Comments
 (0)