4fa96705379b10b761a7097b1adb12145402cb1f,spacy/lemmatizer.py,Lemmatizer,__call__,#Lemmatizer#,34

Before Change


            return [lookup_table.get(string, string)]
        if univ_pos in (NOUN, "NOUN", "noun"):
            univ_pos = "noun"
        elif univ_pos in (VERB, "VERB", "verb"):
            univ_pos = "verb"
        elif univ_pos in (ADJ, "ADJ", "adj"):
            univ_pos = "adj"
        elif univ_pos in (PUNCT, "PUNCT", "punct"):
            univ_pos = "punct"
        elif univ_pos in (PROPN, "PROPN"):
            return [string]

After Change


            return [lookup_table.get(string, string)]
        if isinstance(univ_pos, int):
            univ_pos = UPOS_NAMES.get(univ_pos, "X")
        univ_pos = univ_pos.lower()

        if univ_pos in ("", "eol", "space"):
            return [string.lower()]
        // See Issue /륋 for example of where this logic is requied.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: explosion/spaCy
Commit Name: 4fa96705379b10b761a7097b1adb12145402cb1f
Time: 2020-05-20
Author: adrianeboyd@gmail.com
File Name: spacy/lemmatizer.py
Class Name: Lemmatizer
Method Name: __call__


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: google/uis-rnn
Commit Name: 8f4642206fce5a59055012157abe59f38ca0068b
Time: 2019-04-25
Author: quanw@google.com
File Name: uisrnn/arguments.py
Class Name:
Method Name: str2bool