Sense2vec

Latest version: v2.0.2

Safety actively analyzes 628903 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 3

1.0.0

✨ New features and improvements

* Completely rewrite package from scratch.
* Replace built-in vector storage with spaCy's [`Vectors`](https://spacy.io/api/vectors), making this package a pure Python package and allowing easy out-of-the-box serialization of vectors.
* Add fully serializable spaCy pipeline component and extension attributes.
* Add new methods `get_best_sense` and `get_other_senses` and improve `most_similar`.
* Add script for precomputing index of nearest neighbors for super fast "most similar" queries.
* Add annotation recipes for [Prodigy](https://prodi.gy) to easily create word lists and match patterns from similar phrases using sense2vec vectors (like the `terms.teach` recipe, just with multi-word expressions).
* New and more efficient [training and preprocessing scripts](scripts) using GloVe and fastText.

⚠️ Backwards incompatibilities

* The `sense2vec.load` method has been removed. Use `Sense2Vec.from_disk` instead.
* The previous `VectorMap` and `VectorStorage` have been removed.
* This package now requires Python 3.6+.
* This update requires a new vectors format (see attached files).

📖 Documentation and examples

* Rewrite [`README`](README.md) from scratch and include full API docs.

👥 Contributors

Thanks to kabirkhan for contributing the initial Prodigy recipes!

1.0.0a10

1.0.0a9

1.0.0a8

1.0.0a7

1.0.0a6

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.