mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 09:26:27 +03:00
Remove comma that caused list to wrap in tuple!
Also removed extra dict wrappings for performance (we used to have them in there, but they should only really exist if copying the dict is absolutely necessary)
This commit is contained in:
parent
147448b65b
commit
06c25a8882
|
@ -24,8 +24,7 @@ _exc = {
|
||||||
|
|
||||||
"led'": [
|
"led'": [
|
||||||
{ORTH: "le", LEMMA: "le", NORM: "le", POS: ADP},
|
{ORTH: "le", LEMMA: "le", NORM: "le", POS: ADP},
|
||||||
{ORTH: "d'", LEMMA: "mo", NORM: "do", POS: DET}],
|
{ORTH: "d'", LEMMA: "mo", NORM: "do", POS: DET}]
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for exc_data in [
|
for exc_data in [
|
||||||
|
@ -77,11 +76,11 @@ for exc_data in [
|
||||||
{ORTH: "Uas.", LEMMA: "Uasal", POS: NOUN},
|
{ORTH: "Uas.", LEMMA: "Uasal", POS: NOUN},
|
||||||
{ORTH: "uimh.", LEMMA: "uimhir", POS: NOUN},
|
{ORTH: "uimh.", LEMMA: "uimhir", POS: NOUN},
|
||||||
{ORTH: "Uimh.", LEMMA: "uimhir", POS: NOUN}]:
|
{ORTH: "Uimh.", LEMMA: "uimhir", POS: NOUN}]:
|
||||||
_exc[exc_data[ORTH]] = [dict(exc_data)],
|
_exc[exc_data[ORTH]] = [exc_data]
|
||||||
|
|
||||||
for orth in [
|
for orth in [
|
||||||
"d'", "D'"]:
|
"d'", "D'"]:
|
||||||
_exc[orth] = [{ORTH: orth}]
|
_exc[orth] = [{ORTH: orth}]
|
||||||
|
|
||||||
|
|
||||||
TOKENIZER_EXCEPTIONS = dict(_exc)
|
TOKENIZER_EXCEPTIONS = _exc
|
||||||
|
|
Loading…
Reference in New Issue
Block a user