sister
SISTER (SImple SenTence EmbeddeR)
Installation
pip install sister
Basic Usage
import sister
sentence_embedding = sister.MeanEmbedding(lang="en")
sentence = "I am a dog."
vector = sentence_embedding(sentence)
Supported languages.
- English
- Japanese
- French
In order to support a new language, please implement Tokenizer (inheriting sister.tokenizers.Tokenizer) and add fastText
pre-trained url to word_embedders.get_fasttext() (List of model urls).
Bert models are supported for en, fr, ja (2020-06-29).
Actually Albert for English, CamemBERT for French and BERT for Japanese.
To use BERT, you need to install sister by pip install 'sister[bert]'.
import sister
bert_embedding = sister.BertEmbedding(lang="en")
sentence = "I am a dog."
vector = bert_embedding(sentence)
You can also give multiple sentences to it (more efficient).
import sister
bert_embedding = sister.BertEmbedding(lang="en")
sentences = ["I am a dog.", "I want be a cat."]
vectors = bert_embedding(sentences)
Metadata
Release files for sister 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sister-0.2.2.tar.gz | 4.7 kB | Without provenance | Details for sister-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sister-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for sister-0.2.2-py3-none-any.whl |
Total release size: 10.0 kB
Release files / sister-0.2.2.tar.gz
| Download URL | sister-0.2.2.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
31efc203fcaefd0ab72816d4dd19f7e845e401385c6b0881d2d44702d59015a4
|
|
BLAKE2b-256 checksum How to use checksums |
e56a39c09c4ebfb27e2dd17a16ab6994dc8b94ccf105b899809c34fa76cee321
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.5 CPython/3.8.6 Darwin/19.5.0
|
Release files / sister-0.2.2-py3-none-any.whl
| Download URL | sister-0.2.2-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
498429b6c05995a16c5c6dfcadbf55be394ef8bf26a26d393d0d7862096dde90
|
|
BLAKE2b-256 checksum How to use checksums |
b1cb0d037e45122443a544c17d6fd29f611b4039df6199e32219be9483cf9393
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.5 CPython/3.8.6 Darwin/19.5.0
|
Security for sister 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.