MCPcopy Index your code
hub / github.com/explosion/projects

github.com/explosion/projects @en-ner-drugs-0.0.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release en-ner-drugs-0.0.0 ↗ · + Follow
163 symbols 706 edges 72 files 36 documented · 22% updated 21mo agonel-benchmark-filtered-wiki-data · 2022-08-26★ 1,431
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

🪐 Project Templates

spaCy projects let you manage and share end-to-end spaCy workflows for different use cases and domains, and orchestrate training, packaging and serving your custom pipelines. You can start off by cloning a pre-defined project template, adjust it to fit your needs, load in your data, train a pipeline, export it as a Python package, upload your outputs to a remote storage and share your results with your team.

⚠️ spaCy project templates require spaCy v3.0. You can install it from pip with pip install spacy or conda with conda install spacy -c conda-forge. Make sure to use a fresh virtual environment.

See the master branch for the previous version of this repo.

Azure Pipelines spaCy

🗃 Categories

Name Description
pipelines Templates for training NLP pipelines with different components on different corpora.
tutorials Templates that work through a specific NLP use case end-to-end.
integrations Templates showing integrations with third-party libraries and tools for managing your data and experiments, iterating on demos and prototypes and shipping your models into production.
benchmarks Templates to reproduce our benchmarks and produce quantifiable results that are easy to compare against other systems or versions of spaCy.
experimental Experimental workflows and other cutting-edge stuff to use at your own risk.

🚀 Quickstart

Projects can be used via the new spacy project CLI. To find out more about a command, add --help. For detailed instructions, see the usage guide.

  1. Clone the project template you want to use. bash python -m spacy project clone tutorials/ner_fashion_brands
  2. Fetch assets (data, weights) defined in the project.yml. bash cd ner_fashion_brands python -m spacy project assets
  3. Run a command defined in the project.yml. bash python -m spacy project run preprocess
  4. Run a workflow of multiple steps in order. bash python -m spacy project run all
  5. Adjust the template for your specific use case, load in your own data, adjust the settings and model and share the result with your team.

👷‍♀️Repository maintanance

To keep the project templates and their documentation up to date, this repo contains several scripts:

Script Description
update_docs.py Update all auto-generated docs in the given root. Calls into spacy project document and only replaces the auto-generated sections, not any custom content before or after.
update_category_docs.py Update the auto-generated README.md in the category directories listing the available project templates.
update_configs.py Update and auto-fill all config.cfg files included in the repo, similar to spacy init fill-config. Can be used to keep the configs up to date with changes in spaCy.

Core symbols most depended-on inside this repo

_test_ok
called by 13
benchmarks/ud_benchmark/scripts/conll18_ud_eval.py
alignment_score
called by 11
benchmarks/ud_benchmark/scripts/conll18_ud_eval.py
_encode
called by 8
benchmarks/ud_benchmark/scripts/conll18_ud_eval.py
get_instances
called by 4
tutorials/rel_component/scripts/rel_model.py
load_conllu
called by 4
benchmarks/ud_benchmark/scripts/conll18_ud_eval.py
_load_words
called by 4
benchmarks/ud_benchmark/scripts/conll18_ud_eval.py
evaluate
called by 3
benchmarks/ud_benchmark/scripts/conll18_ud_eval.py
rebatch_texts
called by 3
benchmarks/speed/scripts/data_reader.py

Shape

Function 118
Method 26
Class 15
Route 4

Languages

Python100%

Modules by API surface

benchmarks/ud_benchmark/scripts/conll18_ud_eval.py39 symbols
tutorials/rel_component/scripts/rel_pipe.py15 symbols
integrations/fastapi/scripts/main.py11 symbols
tutorials/rel_component/scripts/rel_model.py8 symbols
benchmarks/speed/scripts/run_nlp.py8 symbols
tutorials/textcat_goemotions/scripts/convert_corpus.py4 symbols
benchmarks/textcat_architectures/scripts/functions.py4 symbols
tutorials/ner_fashion_brands/scripts/visualize_data.py3 symbols
tutorials/ner_drugs/scripts/visualize_data.py3 symbols
tutorials/nel_emerson/scripts/el_recipe.py3 symbols
benchmarks/ud_benchmark/scripts/evaluate.py3 symbols
tutorials/rel_component/scripts/evaluate.py2 symbols

For agents

$ claude mcp add projects \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page