Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienball committed Mar 22, 2019
1 parent f0336ae commit 699890f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions snips_nlu/tests/test_deterministic_intent_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,15 +135,17 @@ def test_should_parse_top_intents(self):
results = parser.parse(text, top_n=3)

# Then
slot = {
"entity": "snips/datetime",
"range": {"end": 16, "start": 8},
"slotName": "time",
"value": "tomorrow"
}
expected_results = [
extraction_result(intent_classification_result(
intent_name="intent1", probability=0.5), []),
extraction_result(intent_classification_result(
intent_name="intent2", probability=0.5),
[{"entity": "snips/datetime",
"range": {"end": 16, "start": 8},
"slotName": "time",
"value": "tomorrow"}])
intent_name="intent2", probability=0.5), [slot])
]
expected_results = sorted(expected_results,
key=lambda r: r[RES_INTENT][RES_INTENT_NAME])
Expand Down

0 comments on commit 699890f

Please sign in to comment.