Skip to content

1.0.0

Latest

Choose a tag to compare

@davebulaval davebulaval released this 02 Nov 03:56
· 6 commits to main since this release
59d1e3c

Highlights

  • New Model2Vec models: model2vec-8m, model2vec-32m and model2vec-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 BPEmbBaseURLWrapperBugFix and deepparse.bpemb_url_bug_fix (use deepparse.BPEmbLoader), load_fasttext_embeddings (use deepparse.embeddings_models.FastTextBinReader) and FASTTEXT_AVAILABLE.
  • The internal helpers and constants that were reachable as deepparse.<name> but are not in deepparse.__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.