Ines Montani
e6accb3a9e
Tidy up and auto-format
2021-01-30 12:52:33 +11:00
Ines Montani
817b0db521
Fix escape sequence
2021-01-30 12:39:58 +11:00
Ines Montani
526b416118
Tidy up comments
2021-01-30 12:34:09 +11:00
Ines Montani
30765674d0
Merge branch 'master' into develop
2021-01-30 12:20:28 +11:00
Ines Montani
8ddf53f8e1
Merge pull request #6857 from tupui/patch-1
2021-01-30 12:07:05 +11:00
Ines Montani
0e9ca7fca1
Merge pull request #6858 from svlandeg/fix/upgrade_pytest
...
update pytest pin to match Thinc 8.0
2021-01-30 11:59:04 +11:00
Ines Montani
2609ba4e89
Support building wheel in spacy package
2021-01-30 11:54:02 +11:00
svlandeg
78a439a7c2
update pytest to 5.2.0
2021-01-29 17:08:01 +01:00
Pamphile ROY
e496b8623f
SCA tupui
2021-01-29 15:46:53 +01:00
Pamphile ROY
41ee75ac6d
Remove --no-cache-dir when downloading models
...
When `--no-cache-dir` is present, it prevents caching to properly function.
If the user still wants to do this, there is the possibility to pass options with `user_pip_args`.
But you should not enforce options like these. In my case this is preventing some docker build (using buildkit caching) to have proper caching of models.
2021-01-29 15:37:44 +01:00
Ines Montani
bbf080dfe5
Merge pull request #6645 from bittlingmayer/patch-3
2021-01-30 01:26:28 +11:00
Ines Montani
95e958a229
Merge pull request #6852 from explosion/feature/replace-listeners
2021-01-30 00:58:08 +11:00
Adriane Boyd
bced6309e5
Add full exceptions with spaces
2021-01-29 14:27:22 +01:00
Ines Montani
30c872a750
Merge pull request #6856 from adrianeboyd/docs/trf-sentencepiece-2 [ci skip]
...
Rephrase transformers PyTorch instructions
2021-01-30 00:08:54 +11:00
Ines Montani
756b49c184
Update spacy-lookups-data pin
2021-01-30 00:07:49 +11:00
Ines Montani
7ba29f2d03
Update spacy-transformers pin
2021-01-30 00:06:07 +11:00
Ines Montani
7886d59c56
Add check for remove_listener method
2021-01-29 23:47:30 +11:00
Ines Montani
7694f76dd1
Update warning and mention replace_listeners
2021-01-29 23:46:01 +11:00
Ines Montani
94232aea08
Improve E889
2021-01-29 23:39:23 +11:00
Adriane Boyd
8b76cb8095
Rephrase transformers PyTorch instructions
2021-01-29 13:36:56 +01:00
Ines Montani
095055ac48
Merge pull request #6855 from adrianeboyd/docs/trf-sentencepiece [ci skip]
...
Update transfomers install docs
2021-01-29 23:34:01 +11:00
Adriane Boyd
e3e87e7275
Update transfomers install docs
...
* Recommend installing PyTorch separately
* Add instructions for `sentencepiece`
2021-01-29 13:27:43 +01:00
Ines Montani
924396c20c
Merge branch 'feature/replace-listeners' of https://github.com/explosion/spaCy into feature/replace-listeners
2021-01-29 21:43:10 +11:00
Ines Montani
2102082478
Make Tok2Vec.remove_listener return bool
...
Whether listener was removed
2021-01-29 21:41:38 +11:00
Ines Montani
e766e8c56d
Apply suggestions from code review
...
Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
2021-01-29 21:41:17 +11:00
Ines Montani
d600bc6d5d
Merge pull request #6853 from svlandeg/fix/docs_new_v3 [ci skip]
...
adding new="3" mentions in the doc
2021-01-29 21:39:43 +11:00
svlandeg
d7d838281c
adding new="3" mentions in the doc
2021-01-29 11:26:37 +01:00
Ines Montani
04fcb4e228
Update README.md [ci skip]
2021-01-29 21:08:51 +11:00
Ines Montani
60cd62917a
Update README.md [ci skip]
2021-01-29 21:06:46 +11:00
Ines Montani
fc0ed8fef4
Update README.md [ci skip]
2021-01-29 21:05:03 +11:00
Ines Montani
e9a42349d2
Update README.md [ci skip]
2021-01-29 20:58:06 +11:00
Ines Montani
5d22817c15
Update README.md [ci skip]
2021-01-29 20:55:53 +11:00
Ines Montani
bc089b693c
Update tests
2021-01-29 19:38:09 +11:00
Ines Montani
325f47500d
Move replacement logic to Language.from_config
2021-01-29 19:37:04 +11:00
Ines Montani
0f3e3eedc2
Add Tok2vec.remove_listener
2021-01-29 19:36:38 +11:00
Ines Montani
99af9e7125
Update documentation
2021-01-29 18:45:48 +11:00
Ines Montani
99842387cb
Remove default value
2021-01-29 18:45:37 +11:00
Ines Montani
44b5542d14
Change method order
2021-01-29 18:42:41 +11:00
Ines Montani
8c15d1daec
Update and validate config first and exit early if paths don't exist
2021-01-29 18:24:47 +11:00
Ines Montani
bbb94b37c6
Update error handling and docstring
2021-01-29 16:27:49 +11:00
Ines Montani
01ecfbcc45
Merge branch 'develop' into feature/replace-listeners
2021-01-29 15:57:32 +11:00
Ines Montani
911dfcccfc
Add option to replace listeners for sourced components
2021-01-29 15:57:04 +11:00
Adriane Boyd
fcce3600ed
Forbid OP matching 2+ tokens in DependencyMatcher ( #6824 )
...
Instead of silently using only the first token in each matched span:
* Forbid `OP: ?/*/+` through `DependencyMatcher` validation
* As a fail-safe, add warning if a token match that's not exactly one
token long is found by a token pattern.
2021-01-29 08:52:01 +08:00
Sofie Van Landeghem
24a697abb8
avoid empty aliases and improve UX and docs ( #6840 )
2021-01-29 08:51:40 +08:00
Sofie Van Landeghem
837a4f53c2
Error handling in nlp.pipe ( #6817 )
...
* add error handler for pipe methods
* add unit tests
* remove pipe method that are the same as their base class
* have Language keep track of a default error handler
* cleanup
* formatting
* small refactor
* add documentation
2021-01-29 08:51:21 +08:00
Ines Montani
cc18f3f23c
Improve Example error handling for NER data ( #6835 )
...
* Improve Example error handling for NER data
* Fix conditional
2021-01-28 13:11:20 +11:00
Ines Montani
78d6ff4dd4
Update quickstart recommendations
2021-01-28 11:14:49 +11:00
Ines Montani
ec5f55aa5b
Update config generation defaults and transformers ( #6832 )
2021-01-27 23:56:33 +11:00
Adriane Boyd
4096a79de7
Add alignment mode error and fix Doc.char_span docs ( #6820 )
...
* Raise an error on an unrecognized alignment mode rather than
defaulting to `strict`
* Fix the `Doc.char_span` API doc alignment mode details
2021-01-27 23:40:42 +11:00
Sofie Van Landeghem
6b68ad027b
Fix beam NER resizing ( #6834 )
...
* move label check to sub methods
* add tests
2021-01-27 23:39:14 +11:00