mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 18:06:29 +03:00
Merge branch 'organize-language-data' of ssh://github.com/explosion/spaCy into organize-language-data
This commit is contained in:
commit
fa272fdf12
|
@ -34,10 +34,9 @@ def vocab(lemmatizer, tag_map):
|
||||||
return Vocab(lemmatizer=lemmatizer, tag_map=tag_map)
|
return Vocab(lemmatizer=lemmatizer, tag_map=tag_map)
|
||||||
|
|
||||||
|
|
||||||
def test_not_lemmatize_base_forms(vocab, lemmatizer):
|
def test_not_lemmatize_base_forms(vocab):
|
||||||
doc = Doc(vocab, words=["Do", "n't", "feed", "the", "dog"])
|
doc = Doc(vocab, words=["Do", "n't", "feed", "the", "dog"])
|
||||||
feed = doc[2]
|
feed = doc[2]
|
||||||
feed.tag_ = u'VB'
|
feed.tag_ = u'VB'
|
||||||
assert feed.text == u'feed'
|
assert feed.text == u'feed'
|
||||||
assert feed.lemma_ == u'feed'
|
assert feed.lemma_ == u'feed'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user