Permalink
Browse files

misc cleanup

  • Loading branch information...
1 parent de8f9f4 commit 6224001b0f1df9346dcb02aa26a72803c2262010 @kmike committed Mar 26, 2013
Showing with 4 additions and 4 deletions.
  1. +1 −1 .travis.yml
  2. +3 −3 pymorphy2/tagset.py
View
@@ -25,4 +25,4 @@ script:
- py.test --cov=pymorphy2 --doctest-modules tests pymorphy2
after_success:
- - coveralls
+ - coveralls
View
@@ -231,13 +231,13 @@ class OpencorporaTag(object):
# Helper attributes for inflection/declension routines
# ----------------------------------------------------
_NON_PRODUCTIVE_GRAMMEMES = set(['NUMR', 'NPRO', 'PRED', 'PREP',
- 'CONJ', 'PRCL', 'INTJ', 'Apro'])
+ 'CONJ', 'PRCL', 'INTJ', 'Apro'])
_EXTRA_INCOMPATIBLE = { # XXX: is it a good idea to have these rules?
'plur': set(['GNdr']),
# XXX: how to use rules from OpenCorpora?
# (they have "lexeme/form" separation)
}
- _GRAMMEME_INDICES = collections.defaultdict(lambda: 0)
+ _GRAMMEME_INDICES = collections.defaultdict(int)
_GRAMMEME_INCOMPATIBLE = collections.defaultdict(set)
KNOWN_GRAMMEMES = set()
@@ -439,7 +439,7 @@ def _init_grammemes(cls, dict_grammemes):
cls._init_alias_map(dict_grammemes)
super(CyrillicOpencorporaTag, cls)._init_grammemes(dict_grammemes)
- GRAMMEME_INDICES = collections.defaultdict(lambda: 0)
+ GRAMMEME_INDICES = collections.defaultdict(int)
for name, idx in cls._GRAMMEME_INDICES.items():
GRAMMEME_INDICES[cls._from_internal_grammeme(name)] = idx
cls._GRAMMEME_INDICES = GRAMMEME_INDICES

0 comments on commit 6224001

Please sign in to comment.