f1acab811b528be85e2838d813fddb2e5865fea7,snips_nlu/tests/test_deterministic_intent_parser.py,TestDeterministicIntentParser,test_should_be_serializable,#TestDeterministicIntentParser#Any#,543

Before Change


                ]
            },
            "slot_names_to_entities": {
                "dummy_intent_1": {
                    "dummy_slot_name": "dummy_entity_1",
                    "dummy_slot_name3": "dummy_entity_2",
                    "dummy_slot_name2": "dummy_entity_2"
                },
                "dummy_intent_2": {
                    "dummy slot nĂ me": "dummy_entity_1"
                }

After Change


           ".get_stop_words")
    def test_should_be_serializable(self, mock_get_stop_words):
        // Given
        dataset_stream = io.StringIO(
            
---
type: intent
name: searchFlight
slots:
  - name: origin
    entity: city
  - name: destination
    entity: city
utterances:
  - find me a flight from [origin](Paris) to [destination](New York)
  - I need a flight to [destination](Berlin)

---         
type: entity
name: city
values:
  - london
  - [new york, big apple]
  - [paris, city of lights]
            
        )

        dataset = Dataset.from_yaml_files("en", [dataset_stream]).json

        mock_get_stop_words.return_value = {"a", "me"}
        config = DeterministicIntentParserConfig(max_queries=42,
                                                 max_pattern_length=100)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: snipsco/snips-nlu
Commit Name: f1acab811b528be85e2838d813fddb2e5865fea7
Time: 2018-12-04
Author: adrien.ball@snips.ai
File Name: snips_nlu/tests/test_deterministic_intent_parser.py
Class Name: TestDeterministicIntentParser
Method Name: test_should_be_serializable


Project Name: snipsco/snips-nlu
Commit Name: acddae6d90304615b08e364e56de2b40b0324e49
Time: 2019-01-09
Author: clement.doumouro@gmail.com
File Name: snips_nlu/tests/test_log_reg_intent_classifier.py
Class Name: TestLogRegIntentClassifier
Method Name: test_empty_vocabulary_should_fit_and_return_none_intent


Project Name: snipsco/snips-nlu
Commit Name: 8561f49fad2e0b8125cc0e6f329d43b6b78e6b61
Time: 2019-01-02
Author: adrien.ball@snips.ai
File Name: snips_nlu/tests/test_crf_slot_filler.py
Class Name: TestCRFSlotFiller
Method Name: test_should_be_serializable