a0ae00e92253e91d011a7867f7d1be4280c6a1df,snips_nlu/dataset.py,,validate_and_format_custom_entity,#Any#Any#Any#Any#,101

Before Change


                if len(s):
                    normalize_data[s] = entry[VALUE]
                normalized_s = normalize(s)
                if len(normalized_s):
                    normalize_data[normalize(s)] = entry[VALUE]

    formatted_entity[UTTERANCES] = normalize_data

    // Merge queries_entities
    for value in queries_entities:

After Change


            normalize_data, entry_value, entry_value, use_synonyms, language)

        if entity[USE_SYNONYMS]:
            for s in entry[SYNONYMS]:
                normalize_data = add_variation_if_needed(
                    normalize_data, s, entry_value, use_synonyms, language)

    formatted_entity[UTTERANCES] = normalize_data
    // Merge queries_entities
    for value in queries_entities:
        formatted_entity = add_entity_value_if_missing(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: snipsco/snips-nlu
Commit Name: a0ae00e92253e91d011a7867f7d1be4280c6a1df
Time: 2017-10-24
Author: clement.doumouro@snips.ai
File Name: snips_nlu/dataset.py
Class Name:
Method Name: validate_and_format_custom_entity


Project Name: sobhe/hazm
Commit Name: 7e48b6c0fa3feeebd28c743e4cd3ad7e50d1090d
Time: 2016-06-07
Author: mhbashari@gmail.com
File Name: hazm/PeykareReader.py
Class Name: PeykareReader
Method Name: _sentences


Project Name: pgmpy/pgmpy
Commit Name: 7281b68353fa8f9263e071716ac5081df5168f59
Time: 2015-02-01
Author: ankurankan@gmail.com
File Name: pgmpy/inference/ExactInference.py
Class Name: VariableElimination
Method Name: _variable_elimination