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

Before Change


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

After Change


        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()]
        // 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: luispedro/mahotas
Commit Name: f3baee485dbea5e2dab06273d6ffe81dd4d1bfe5
Time: 2010-09-07
Author: lpc@cmu.edu
File Name: mahotas/freeimage.py
Class Name:
Method Name:


Project Name: liyaguang/DCRNN
Commit Name: d59d44e4f018410963af7510877c26ef895efada
Time: 2018-10-01
Author: liyaguang0123@gmail.com
File Name: model/dcrnn_supervisor.py
Class Name: DCRNNSupervisor
Method Name: __init__