mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-12 10:16:27 +03:00
* Add tests for word shape features
This commit is contained in:
parent
c5abb81f4c
commit
4c7b997df7
|
@ -9,10 +9,10 @@ def test_capitalized():
|
|||
assert ws('Nasa') == 'Xxxx'
|
||||
|
||||
def test_truncate():
|
||||
assert ws('capitalized') == 'xxx'
|
||||
assert ws('capitalized') == 'xxxxx'
|
||||
|
||||
def test_digits():
|
||||
assert ws('999999999') == 'ddd'
|
||||
assert ws('999999999') == 'ddddd'
|
||||
|
||||
def test_mix():
|
||||
assert ws('C3P0') == 'XdXd'
|
||||
|
|
Loading…
Reference in New Issue
Block a user