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

Before Change


            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


        lookup_table = self.lookups.get_table("lemma_lookup", {})
        if "lemma_rules" not in self.lookups:
            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()]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

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: snorkel-team/snorkel
Commit Name: c22e6a2919a9d1b49335b6fede01852cf01395a2
Time: 2017-08-23
Author: dnicholson329@gmail.com
File Name: snorkel/learning/gen_learning.py
Class Name: GenerativeModel
Method Name: train


Project Name: tensorflow/mesh
Commit Name: abb3fad266b933efcabbd4f208d515a495127a4f
Time: 2020-12-21
Author: fjord@google.com
File Name: mesh_tensorflow/transformer/utils.py
Class Name:
Method Name: eval_model