mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-27 16:39:55 +03:00
Fix formatting
This commit is contained in:
parent
516783b376
commit
406991459a
|
@ -4483,10 +4483,10 @@
|
||||||
"import spacy",
|
"import spacy",
|
||||||
"nlp = spacy.load(\"ro_legal_fl\")",
|
"nlp = spacy.load(\"ro_legal_fl\")",
|
||||||
"",
|
"",
|
||||||
"doc = nlp(\"Titlul III din LEGEA nr. 255 din 19 iulie 2013, publicată în MONITORUL OFICIAL\")"
|
"doc = nlp(\"Titlul III din LEGEA nr. 255 din 19 iulie 2013, publicată în MONITORUL OFICIAL\")",
|
||||||
"# legal entity identification"
|
"# legal entity identification",
|
||||||
"for entity in doc.ents:"
|
"for entity in doc.ents:",
|
||||||
" print('entity: ', entity, '; entity type: ', entity.label_)"
|
" print('entity: ', entity, '; entity type: ', entity.label_)",
|
||||||
"",
|
"",
|
||||||
"# floret n-gram embeddings robust to typos",
|
"# floret n-gram embeddings robust to typos",
|
||||||
"print(nlp('achizit1e public@').similarity(nlp('achiziții publice')))"
|
"print(nlp('achizit1e public@').similarity(nlp('achiziții publice')))"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user