9582b206c63f01ca3f6990f50b0cd7754e2fe65b,conceptnet5/nodes.py,,make_concept_uri,#,1

Before Change


    if lang == "en":
        from metanl import english
        normalized, disambig = english.normalize_topic(text)
    elif lang == "ja":
        from metanl import japanese
        normalized, disambig = japanese.normalize(text), None
    elif lang in ("pt", "hu", "nl", "es"):
        // languages where we know the stopword list
        import simplenlp
        nlp = simplenlp.get(lang)
        disambig = None
        normalized, disambig = nlp.normalize(text), None
    else:
        normalized = text
        disambig = None
    if disambiguation is not None:
        disambig = disambiguation
    if disambig is not None:
        disambig = disambig.replace(" ", "_")

After Change


        return match.group(1), "n/" + match.group(2).strip(" _")

def make_concept_uri(text, lang, disambiguation=None):
    if disambiguation is None:
        text, disambiguation = handle_disambig(text)

    if lang == "en":
        normalized = english.normalize(text)
    else:
        normalized = preprocess_text(text).lower()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 9

Instances


Project Name: commonsense/conceptnet5
Commit Name: 9582b206c63f01ca3f6990f50b0cd7754e2fe65b
Time: 2013-05-24
Author: rob@luminoso.com
File Name: conceptnet5/nodes.py
Class Name:
Method Name: make_concept_uri


Project Name: daavoo/pyntcloud
Commit Name: f9b3bc145e981a05dd27abc8f2987692bf4d3b5c
Time: 2017-03-09
Author: daviddelaiglesiacastro@gmail.com
File Name: pyntcloud/pyntcloud.py
Class Name: PyntCloud
Method Name: get_filter


Project Name: scikit-optimize/scikit-optimize
Commit Name: 9b7004cbbf674beb5cc486cf524e07dc8f7324a3
Time: 2020-02-15
Author: holgernahrstaedt@gmx.de
File Name: skopt/optimizer/optimizer.py
Class Name: Optimizer
Method Name: __init__


Project Name: daavoo/pyntcloud
Commit Name: a2f318363a1c4dde386d7f7ac316baa706678b89
Time: 2017-03-09
Author: daviddelaiglesiacastro@gmail.com
File Name: pyntcloud/pyntcloud.py
Class Name: PyntCloud
Method Name: get_sample