From f68e420bc0b27ddd74ea06a754db7fd8fc277bc3 Mon Sep 17 00:00:00 2001 From: ines Date: Mon, 8 May 2017 15:35:30 +0200 Subject: [PATCH] Add PRON_LEMMA and DET_LEMMA to deprecated Will be replaced with proper values across the language data later. --- spacy/deprecated.py | 2 ++ spacy/language_data/entity_rules.py | 8 +++----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/spacy/deprecated.py b/spacy/deprecated.py index b44059115..65c6c6c69 100644 --- a/spacy/deprecated.py +++ b/spacy/deprecated.py @@ -42,6 +42,8 @@ def fix_glove_vectors_loading(overrides): def match_best_version(target_name, target_version, path): def split_data_name(name): return name.split('-', 1) if '-' in name else (name, '') +PRON_LEMMA = "-PRON-" +DET_LEMMA = "-DET-" path = util.ensure_path(path) if path is None or not path.exists(): diff --git a/spacy/language_data/entity_rules.py b/spacy/language_data/entity_rules.py index 85c201827..7e16a5837 100644 --- a/spacy/language_data/entity_rules.py +++ b/spacy/language_data/entity_rules.py @@ -1,8 +1,9 @@ # coding: utf8 from __future__ import unicode_literals -from ..symbols import * -from .util import ENT_ID +from ..symbols import ORTH, ENT_TYPE, LOWER + +ENT_ID = "ent_id" ENTITY_RULES = [ @@ -201,6 +202,3 @@ FALSE_POSITIVES = [ [{ORTH: "Yea"}], [{ORTH: "Bah"}] ] - - -__all__ = ["ENTITY_RULES", "FALSE_POSITIVES"]