spaCy/website/docs/api
Joshua Smith 2eb925bd05 Added an argument to EntityRuler constructor to pass attrs to… (#3919)
* Perserve flags in EntityRuler

The EntityRuler (explosion/spaCy#3526) does not preserve
overwrite flags (or `ent_id_sep`) when serialized.  This
commit adds support for serialization/deserialization preserving
overwrite and ent_id_sep flags.

* add signed contributor agreement

* flake8 cleanup

mostly blank line issues.

* mark test from the issue as needing a model

The test from the issue needs some language model for serialization
but the test wasn't originally marked correctly.

* Adds `phrase_matcher_attr` to allow args to PhraseMatcher

This is an added arg to pass to the `PhraseMatcher`. For example,
this allows creation of a case insensitive phrase matcher when the
`EntityRuler` is created.  References explosion/spaCy#3822

* remove unneeded model loading

The model didn't need to be loaded, and I replaced it with
a change that doesn't require it (using existings fixtures)

* updated docstring for new argument

* updated docs to reflect new argument to the EntityRuler constructor

* change tempdir handling to be compatible with python 2.7

* return conflicted code to entityruler

Some stuff got cut out because of merge conflicts, this
returns that code for the phrase_matcher_attr.

* fixed typo in the code added back after conflicts

* flake8 compliance

When I deconflicted the branch there were some flake8 issues
introduced. This resolves the spacing problems.

* test changes:  attempts to fix flaky test in python3.5

These tests seem to be alittle flaky in 3.5 so I changed the check to avoid
the comparisons that seem to be fail sometimes.
2019-07-09 20:09:17 +02:00
..
annotation.md fix all references to BILUO annotation format (#3797) 2019-05-31 12:19:19 +02:00
cli.md Update pretrain docs and add unsupported loss_func error (#3860) 2019-06-20 10:30:44 +02:00
cython-classes.md 💫 Update website (#3285) 2019-02-17 19:31:19 +01:00
cython-structs.md Improve Token.prob and Lexeme.prob docs (resolves #3701) 2019-05-11 15:23:41 +02:00
cython.md 💫 Update website (#3285) 2019-02-17 19:31:19 +01:00
dependencyparser.md Fix DependencyParser.predict docs (resolves #3561) 2019-05-11 15:37:54 +02:00
doc.md Add Doc.lang and Doc.lang_ 2019-03-11 14:21:40 +01:00
entityrecognizer.md 💫 Make serialization methods consistent (#3385) 2019-03-10 19:16:45 +01:00
entityruler.md Added an argument to EntityRuler constructor to pass attrs to… (#3919) 2019-07-09 20:09:17 +02:00
goldcorpus.md 💫 Update website (#3285) 2019-02-17 19:31:19 +01:00
goldparse.md Auto-format [ci skip] 2019-02-27 12:07:35 +01:00
index.md 💫 Update website (#3285) 2019-02-17 19:31:19 +01:00
language.md Document Language.evaluate 2019-05-24 14:06:36 +02:00
lemmatizer.md 💫 Update website (#3285) 2019-02-17 19:31:19 +01:00
lexeme.md Fix lex_id docs (closes #3743) 2019-05-16 23:15:58 +02:00
matcher.md Remove n_threads 2019-02-17 22:25:42 +01:00
phrasematcher.md Remove n_threads 2019-02-17 22:25:42 +01:00
pipeline-functions.md Tidy up and improve docs and docstrings (#3370) 2019-03-08 11:42:26 +01:00
scorer.md Update Scorer and add API docs 2019-05-24 14:06:04 +02:00
sentencizer.md 💫 Add better and serializable sentencizer (#3471) 2019-03-23 15:45:02 +01:00
span.md Typo (#3865) 2019-06-20 10:31:19 +02:00
stringstore.md 💫 Make serialization methods consistent (#3385) 2019-03-10 19:16:45 +01:00
tagger.md 💫 Make serialization methods consistent (#3385) 2019-03-10 19:16:45 +01:00
textcategorizer.md Fix formatting [ci skip] 2019-03-23 16:45:50 +01:00
token.md Incorrect Token attribute ent_iob_ description (#3800) 2019-05-31 16:50:45 +02:00
tokenizer.md Auto-format [ci skip] 2019-06-16 14:33:20 +02:00
top-level.md Merge branch 'spacy.io' [ci skip] 2019-05-11 23:03:56 +02:00
vectors.md Fix website docs for Vectors.from_glove (#3565) 2019-04-10 15:23:27 +02:00
vocab.md Document new API [ci skip] 2019-03-11 15:23:53 +01:00