fc5fddb022d2bdfd1b9f0de673ae5fc8c99bf677,snips_nlu/resources.py,,_get_resource,#Any#Any#,240
Before Change
"load_resources function" % language)
if resource_name not in _RESOURCES[language] \
or _RESOURCES[language][resource_name] is None:
raise MissingResource("Resource "{}" not found for language "{}""
.format(resource_name, language))
return _RESOURCES[language][resource_name]
def _get_stop_words(resources_dir, stop_words_filename):
After Change
def _get_resource(resources, resource_name):
if resource_name not in resources or resources[resource_name] is None:
raise MissingResource("Resource "%s" not found" % resource_name)
return resources[resource_name]
def _get_stop_words(resources_dir, stop_words_filename):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: snipsco/snips-nlu
Commit Name: fc5fddb022d2bdfd1b9f0de673ae5fc8c99bf677
Time: 2019-01-17
Author: adrien.ball@snips.ai
File Name: snips_nlu/resources.py
Class Name:
Method Name: _get_resource
Project Name: snipsco/snips-nlu
Commit Name: fc5fddb022d2bdfd1b9f0de673ae5fc8c99bf677
Time: 2019-01-17
Author: adrien.ball@snips.ai
File Name: snips_nlu/resources.py
Class Name:
Method Name: get_word_cluster
Project Name: snipsco/snips-nlu
Commit Name: fc5fddb022d2bdfd1b9f0de673ae5fc8c99bf677
Time: 2019-01-17
Author: adrien.ball@snips.ai
File Name: snips_nlu/resources.py
Class Name:
Method Name: get_gazetteer