Repository navigation
Highlights
- New Model2Vec models:
model2vec-8m,model2vec-32mandmodel2vec-multilingual, with and without attention (pip install deepparse[model2vec]). They reach 97.95–98.73% per-word accuracy on the worldwide-addresses test set, with 59 MB to 1 GB of embeddings and ~1–2.8 GB of RAM. Each released model was selected on the validation loss over a grid of 4 hidden sizes × 5 seeds; the weights are on the Hugging Face Hub (deepparse/model2vec-*). - MIT license: Deepparse and its pretrained models are now under the MIT license.
- Lighter FastText and BPEmb loading: gensim-free loaders (memory-mapped FastText reader: ~1.3 GB of RAM instead of ~8.4 GB, ~4 s to load instead of ~42 s) and a BPEmb embedding network about twice as fast on GPU.
- Delimited public API:
deepparse.__all__lists the public names of the top-level package.
Breaking changes
- Removed
BPEmbBaseURLWrapperBugFixanddeepparse.bpemb_url_bug_fix(usedeepparse.BPEmbLoader),load_fasttext_embeddings(usedeepparse.embeddings_models.FastTextBinReader) andFASTTEXT_AVAILABLE. - The internal helpers and constants that were reachable as
deepparse.<name>but are not indeepparse.__all__(e.g.deepparse.weights_init,deepparse.MODEL_REPO_IDS) must be imported from their own module (e.g.deepparse.weights_tools,deepparse.download_tools).
The FastText and BPEmb pretrained weights are unchanged.
See the changelog for all the changes.