Tf-Idf-CategoryWeighting
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file Tf-Idf-CategoryWeighting-0.0.0.tar.gz
.
File metadata
- Download URL: Tf-Idf-CategoryWeighting-0.0.0.tar.gz
- Upload date:
- Size: 14.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4677b170a38a2faafe9afb6f8e1fa713c086f28a9d508dfcdfda5e6229e04fa |
|
MD5 | 341eff12ccfe184decdee77d883bcdee |
|
BLAKE2b-256 | 0700b2fb4960b8ce16fc21e1ebd80a723b73f58d61068a1688e471613933ef30 |