aa7a5124211456bf14340a7f0ea06e64af83c882,snips_nlu/tests/test_deterministic_intent_parser.py,TestDeterministicIntentParser,test_should_be_serializable,#TestDeterministicIntentParser#Any#,656
Before Change
mock_get_stop_words.return_value = {"a", "me"}
config = DeterministicIntentParserConfig(
max_queries=42, max_pattern_length=100, ignore_stop_words=True)
shared = self.get_shared_data(dataset)
parser = DeterministicIntentParser(config=config, **shared)
parser.fit(dataset)
// When
parser.persist(self.tmp_file_path)
After Change
)
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, ignore_stop_words=True)
parser = DeterministicIntentParser(config=config).fit(dataset)
// When
parser.persist(self.tmp_file_path)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 6
Instances
Project Name: snipsco/snips-nlu
Commit Name: aa7a5124211456bf14340a7f0ea06e64af83c882
Time: 2019-01-17
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: aa7a5124211456bf14340a7f0ea06e64af83c882
Time: 2019-01-17
Author: adrien.ball@snips.ai
File Name: snips_nlu/tests/test_deterministic_intent_parser.py
Class Name: TestDeterministicIntentParser
Method Name: test_should_fit_and_parse_with_non_ascii_tags
Project Name: snipsco/snips-nlu
Commit Name: aa7a5124211456bf14340a7f0ea06e64af83c882
Time: 2019-01-17
Author: adrien.ball@snips.ai
File Name: snips_nlu/tests/test_deterministic_intent_parser.py
Class Name: TestDeterministicIntentParser
Method Name: test_should_limit_patterns_length
Project Name: snipsco/snips-nlu
Commit Name: aa7a5124211456bf14340a7f0ea06e64af83c882
Time: 2019-01-17
Author: adrien.ball@snips.ai
File Name: snips_nlu/tests/test_deterministic_intent_parser.py
Class Name: TestDeterministicIntentParser
Method Name: test_should_limit_nb_queries