mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-27 09:44:36 +03:00
Add PRON_LEMMA and DET_LEMMA to deprecated
Will be replaced with proper values across the language data later.
This commit is contained in:
parent
bd6a7cf4f6
commit
f68e420bc0
|
@ -42,6 +42,8 @@ def fix_glove_vectors_loading(overrides):
|
||||||
def match_best_version(target_name, target_version, path):
|
def match_best_version(target_name, target_version, path):
|
||||||
def split_data_name(name):
|
def split_data_name(name):
|
||||||
return name.split('-', 1) if '-' in name else (name, '')
|
return name.split('-', 1) if '-' in name else (name, '')
|
||||||
|
PRON_LEMMA = "-PRON-"
|
||||||
|
DET_LEMMA = "-DET-"
|
||||||
|
|
||||||
path = util.ensure_path(path)
|
path = util.ensure_path(path)
|
||||||
if path is None or not path.exists():
|
if path is None or not path.exists():
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
# coding: utf8
|
# coding: utf8
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
from ..symbols import *
|
from ..symbols import ORTH, ENT_TYPE, LOWER
|
||||||
from .util import ENT_ID
|
|
||||||
|
ENT_ID = "ent_id"
|
||||||
|
|
||||||
|
|
||||||
ENTITY_RULES = [
|
ENTITY_RULES = [
|
||||||
|
@ -201,6 +202,3 @@ FALSE_POSITIVES = [
|
||||||
[{ORTH: "Yea"}],
|
[{ORTH: "Yea"}],
|
||||||
[{ORTH: "Bah"}]
|
[{ORTH: "Bah"}]
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
__all__ = ["ENTITY_RULES", "FALSE_POSITIVES"]
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user