mirror of
https://github.com/explosion/spaCy.git
synced 2024-09-21 03:19:13 +03:00
37c7c85a86
* Support nowrap setting in util.prints * Tidy up and fix whitespace * Simplify script and use read_jsonl helper * Add JSON schemas (see #2928) * Deprecate Doc.print_tree Will be replaced with Doc.to_json, which will produce a unified format * Add Doc.to_json() method (see #2928) Converts Doc objects to JSON using the same unified format as the training data. Method also supports serializing selected custom attributes in the doc._. space. * Remove outdated test * Add write_json and write_jsonl helpers * WIP: Update spacy train * Tidy up spacy train * WIP: Use wasabi for formatting * Add GoldParse helpers for JSON format * WIP: add debug-data command * Fix typo * Add missing import * Update wasabi pin * Add missing import * 💫 Refactor CLI (#2943) To be merged into #2932. ## Description - [x] refactor CLI To use [`wasabi`](https://github.com/ines/wasabi) - [x] use [`black`](https://github.com/ambv/black) for auto-formatting - [x] add `flake8` config - [x] move all messy UD-related scripts to `cli.ud` - [x] make converters function that take the opened file and return the converted data (instead of having them handle the IO) ### Types of change enhancement ## Checklist <!--- Before you submit the PR, go over this checklist and make sure you can tick off all the boxes. [] -> [x] --> - [x] I have submitted the spaCy Contributor Agreement. - [x] I ran the tests, and all new and existing tests passed. - [x] My changes don't require a change to the documentation, or if they do, I've added all required information. * Update wasabi pin * Delete old test * Update errors * Fix typo * Tidy up and format remaining code * Fix formatting * Improve formatting of messages * Auto-format remaining code * Add tok2vec stuff to spacy.train * Fix typo * Update wasabi pin * Fix path checks for when train() is called as function * Reformat and tidy up pretrain script * Update argument annotations * Raise error if model language doesn't match lang * Document new train command
22 lines
445 B
Plaintext
22 lines
445 B
Plaintext
cython>=0.25
|
|
numpy>=1.15.0
|
|
cymem>=2.0.2,<2.1.0
|
|
preshed>=2.0.1,<2.1.0
|
|
thinc==7.0.0.dev2
|
|
blis>=0.2.2,<0.3.0
|
|
murmurhash>=0.28.0,<1.1.0
|
|
cytoolz>=0.9.0,<0.10.0
|
|
plac<1.0.0,>=0.9.6
|
|
ujson>=1.35
|
|
dill>=0.2,<0.3
|
|
regex==2018.01.10
|
|
requests>=2.13.0,<3.0.0
|
|
jsonschema>=2.6.0,<3.0.0
|
|
wasabi>=0.0.8,<1.1.0
|
|
pathlib==1.0.1; python_version < "3.4"
|
|
# Development dependencies
|
|
pytest>=4.0.0,<5.0.0
|
|
pytest-timeout>=1.3.0,<2.0.0
|
|
mock>=2.0.0,<3.0.0
|
|
flake8>=3.5.0,<3.6.0
|