Tf-Idf-CategoryWeighting
Train Data Format
Y_train |
X_train |
|---|---|
game |
The LoL champions pro players would ban forever |
society |
In Beijing you should keep the rules |
etc. |
etc. |
Sample Usage
>>> import TfIdfCategoryWeighting
#creat vectorizer
>>> Tf_idf_cw_vectorizer = TfIdfCategoryWeighting.TfidfPro_Vectorizer(use_idf=True,use_Wt=True)
#train vectorizer
>>> Tf_idf_cw_vectorizer.fit(X_train,Y_train)
#transform word to vector
>>> X_train = Tf_idf_cw_vectorizer.transform(X_train)
Installation
$ pip install Tf-Idf-CategoryWeighting
Links
Metadata
Release files for Tf-Idf-CategoryWeighting 0.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| Tf-Idf-CategoryWeighting-0.0.0.tar.gz | 14.3 kB | Details |
Release files / Tf-Idf-CategoryWeighting-0.0.0.tar.gz
| Download URL | Tf-Idf-CategoryWeighting-0.0.0.tar.gz |
|---|---|
| Size | 14.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e4677b170a38a2faafe9afb6f8e1fa713c086f28a9d508dfcdfda5e6229e04fa
|
|
BLAKE2b-256 checksum How to use checksums |
0700b2fb4960b8ce16fc21e1ebd80a723b73f58d61068a1688e471613933ef30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |