Skip to main content

Decision Tree Classifier for text entities

Project description

NLP-DecisionTreeClassifier

Sci-kit Learn Decision Tree Classifier for identifying word entities in text

Installation Instructions!

pip install NLP-DecisionTreeClassifier

To train a model using this Decision Tree Classifier, you need to provide a text file, that it will be trained on. Example large_text_file.txt

  1. Call get_sentences_from_text(file_path) The file path is the route to the text file
  2. Call sentence_processor(file_path, sentence) This is the same file_path, the sentence parameter is step 1.
  3. Call train_model(model_name, file_path_model) The model name will be the model file's name, saved in the file path.

After training you can get accuracy scores for the model, or predict on unseen data

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

NLP-DecisionTreeClassifier-0.0.2.tar.gz (1.4 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