Commit Graph

10 Commits

Author SHA1 Message Date
Paul O'Leary McCann
a76fd0da99
Apply suggestions from code review
Co-authored-by: Raphael Mitsch <r.mitsch@outlook.com>
2023-02-10 14:17:51 +09:00
Paul O'Leary McCann
03a0c2badc Move merge to independent command 2023-02-09 15:16:50 +09:00
Paul O'Leary McCann
9d0ae2407b Add types to everything 2023-01-31 13:08:51 +09:00
Paul O'Leary McCann
9d3e3e6be2 Add types to _deep_get 2023-01-31 12:46:06 +09:00
Paul O'Leary McCann
3fe723c1f9 Cleanup
This removes one old print statement and some old TODOs. Some TODOs are
left as future work.
2023-01-13 14:10:18 +09:00
Paul O'Leary McCann
f2bbab4623 Add docs for configure command
This also change the `output_file` arg to match other commands.
2023-01-11 16:06:50 +09:00
Paul O'Leary McCann
10bbb01bb6 Test use_tok2vec, not use_transformer
Adding the transformer component requires spacy-transformers, which
isn't present in the normal test env.
2022-12-27 18:47:24 +09:00
Paul O'Leary McCann
dab7894cf3 Add HashEmbedCNN to list of tok2vec architectures 2022-12-27 17:34:34 +09:00
Paul O'Leary McCann
f3a928cb4b Fix types 2022-12-26 14:55:40 +09:00
Paul O'Leary McCann
f40d8c4ce7 Add commands for automatically modifying configs
This continues work started in
https://github.com/explosion/projects/pull/147,
which provides features for automatically manipulating pipelines and
configs. The functions included are:

- merge: combine components from two pipelines and handle listeners
- use_transformer: use transformer as feature source
- use_tok2vec: use CNN tok2vec as feature source
- resume: make a version of a config for resuming training

Currently these are all grouped under a new `spacy configure` command.
That may not be the best place for them; in particular, `merge` may
belong elsewhere, since it outputs a pipeline rather than a config.

The current state of the PR is that the commands run, but there's only
one small test, and docs haven't been written yet. Docs can be started
but will depend somewhat on how the naming issues work out.
2022-12-23 19:01:13 +09:00