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 details)

Uploaded Source

File details

Details for the file NLP-DecisionTreeClassifier-0.0.2.tar.gz.

File metadata

  • Download URL: NLP-DecisionTreeClassifier-0.0.2.tar.gz
  • Upload date:
  • Size: 1.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.5

File hashes

Hashes for NLP-DecisionTreeClassifier-0.0.2.tar.gz
Algorithm Hash digest
SHA256 8b70fceb522fda7135980ee85344dc6619e4bdf40a378ae4a548d4db1df9ecfd
MD5 84270e13d4cc11d177e3dfb5decaaa3c
BLAKE2b-256 010584f92562864a22b7fa8178c1b7b48926bf529df8951ed0dadb8d80cd8c97

See more details on using hashes here.

Supported by

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