7a84657f849d76467aff9a281769249a553a1ca1,pymorphy2/units/by_shape.py,NumberAnalyzer,check_shape,#NumberAnalyzer#Any#Any#,107

Before Change


    TAG_STR_CYR = "НОМ"

    def check_shape(self, word, word_lower):
        return word.isdigit()


class RomanNumberAnalyzer(_SingleShapeAnalyzer):
    TAG_STR = "ROMN"

After Change


            int(word)
            return "intg"
        except ValueError:
            try:
                float(word.replace(",", "."))
                return "real"
            except ValueError:
                pass
        return False

    def get_tag(self, word, shape):
        return self._tags[shape]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: kmike/pymorphy2
Commit Name: 7a84657f849d76467aff9a281769249a553a1ca1
Time: 2013-11-04
Author: kmike84@gmail.com
File Name: pymorphy2/units/by_shape.py
Class Name: NumberAnalyzer
Method Name: check_shape


Project Name: CellProfiler/CellProfiler
Commit Name: 127b2a061b29703f79647508689c450fd8a667f4
Time: 2009-10-08
Author: leek@1fc53939-2000-0410-845c-e8453a809027
File Name: pyCellProfiler/cellprofiler/settings.py
Class Name: IntegerOrUnboundedRange
Method Name: get_value


Project Name: fxsjy/jieba
Commit Name: 4a552ca94fbc7b7842add0f9b8d63c5ab16cab37
Time: 2015-03-13
Author: abcdoyle888@gmail.com
File Name: jieba/__init__.py
Class Name:
Method Name: load_userdict