mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 12:18:04 +03:00
43 lines
706 B
Python
43 lines
706 B
Python
# encoding: utf8
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
LEMMA_RULES = {
|
|
"noun": [
|
|
["s", ""],
|
|
["ses", "s"],
|
|
["ves", "f"],
|
|
["xes", "x"],
|
|
["zes", "z"],
|
|
["ches", "ch"],
|
|
["shes", "sh"],
|
|
["men", "man"],
|
|
["ies", "y"]
|
|
],
|
|
|
|
"verb": [
|
|
["s", ""],
|
|
["ies", "y"],
|
|
["es", "e"],
|
|
["es", ""],
|
|
["ed", "e"],
|
|
["ed", ""],
|
|
["ing", "e"],
|
|
["ing", ""]
|
|
],
|
|
|
|
"adj": [
|
|
["er", ""],
|
|
["est", ""],
|
|
["er", "e"],
|
|
["est", "e"]
|
|
],
|
|
|
|
"punct": [
|
|
["“", "\""],
|
|
["”", "\""],
|
|
["\u2018", "'"],
|
|
["\u2019", "'"]
|
|
]
|
|
}
|