Skip to main content

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Tf-Idf-CategoryWeighting-0.0.0.tar.gz (14.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page