Skip to content

Commit

Permalink
Add missing backslash
Browse files Browse the repository at this point in the history
Signed-off-by: Davide <[email protected]>
  • Loading branch information
davidezanella committed Aug 14, 2020
1 parent c052e5b commit 04cbacd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rasa/core/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ def find_predicted_entity_from_target(self, target_entity: Dict[Text, Any]) -> D
Return the predicted entity associated with the target one if the entity was predicted correctly, None otherwise.
"""
predicted_entities = list(filter(lambda predicted_entity:
target_entity.get('text') == predicted_entity.get('text') and
target_entity.get('start') == predicted_entity.get('start') and
target_entity.get('text') == predicted_entity.get('text') and \
target_entity.get('start') == predicted_entity.get('start') and \
target_entity.get('end') == predicted_entity.get('end'),
self.entity_predictions))
return predicted_entities[0] if len(predicted_entities) > 0 else None
Expand Down

0 comments on commit 04cbacd

Please sign in to comment.