Doain2Vect
Tf-Idf represents the importance a word is to a document in a latent vector space whereas the model doesn’t consider any semantic representation. But in a specific domain classification, the effect of a particular plays a vital role. On the other hand, the semantic representation model like word2vec, fasttext, gelove, don’t care about the frequency of the important word, they are the same for all latent space. But the important is that they carry semantic information for also unknown words in a latent vector space. To carry the semantic representation with frequency for unknown word representation in a sub-vector space of a domain, we propose a mathematical model from the trained presentation of frequency and semantic both. This model attempts to represent an unknown word from a fixed frequency trained model from another vector semantic representation. The vector space of frequency and semantic are different. But to sustain the importance of an unknown word, we convert the semantic meaning from the semantic vector space to the vector space of frequency.
This is a reserach and development of Hishab.ltd
Installation:
pip install domain2vec
Usage of doamin2vec:
from domain2vec import domain2vec
k = 20000 ## k is the number of cluster or feature that want to extract
vec = domain2Vec(ft, k)
train=k.fit_transform(X_train)
text = k.transform(X_text)
Metadata
Release files for domain2vec 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| domain2vec-0.1-py3-none-any.whl | Python 3 | none | any | Details for domain2vec-0.1-py3-none-any.whl |
Release files / domain2vec-0.1-py3-none-any.whl
| Download URL | domain2vec-0.1-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
386007857ed422fbe189a86dc00376459a41ac96a665cc63bb182b8b8feccdf9
|
|
BLAKE2b-256 checksum How to use checksums |
d084cdcf6c3e68c010ad6418cb68d1b33c2c0851eab1148fe3d98726bcf5906c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
|
Security for domain2vec 0.1
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.