Skip to content

Commit

Permalink
new version 0.3.22
Browse files Browse the repository at this point in the history
  • Loading branch information
falgore88 committed Mar 25, 2016
1 parent 698336b commit b3d8749
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -5,4 +5,5 @@
*.sublime-workspace
dist/
setup.pysetup.py
.cache/
.cache/
.tags*
2 changes: 1 addition & 1 deletion setup.py
@@ -1,7 +1,7 @@
from setuptools import setup


VERSION = "0.3.21"
VERSION = "0.3.22"

setup(
name='ta4',
Expand Down
2 changes: 2 additions & 0 deletions ta4/placeholder.py
Expand Up @@ -44,6 +44,8 @@ def get_gram_infos(self, word):
return [GramInfo(u'дети', u'NOUN')]
elif word.lower() == u'oled':
return [GramInfo(u'oled', 'PRTS')]
elif word.lower() == u'м':
return [GramInfo(u'метр', 'NOUN')]

results = morph.parse(word)
self.cache[word] = [GramInfo(r.normal_form, r.tag.POS) for r in results]
Expand Down
2 changes: 1 addition & 1 deletion tests/test_analyzer.py
Expand Up @@ -36,7 +36,7 @@ def test_exact_analyzer(word, text, expected):
(u'[новогдняя] [ёлка]', u'купить новогднюю ёлку в москве недорого', [1, 2]),
(u'[пластиковое] [*] [окно]', u'установка пластиковых окон', []),
(u'[пластиковое] [*] [*] [окно]', u'пластиковые бронебойные анти-маскитные окна', [0, 1, 2, 3]),
(u'[запчасть] [погрузчик]', u'запчасти для погрузчика', [0, 2]),
(u'[запчасть] [погрузчик]', u'запчасти для погрузчика', [0, 2])
])
def test_subform_analyzer(word, text, expected):
word = Sentence(word)
Expand Down

0 comments on commit b3d8749

Please sign in to comment.