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
- Call get_sentences_from_text(file_path) The file path is the route to the text file
- Call sentence_processor(file_path, sentence) This is the same file_path, the sentence parameter is step 1.
- 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
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
Close
Hashes for NLP-DecisionTreeClassifier-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b70fceb522fda7135980ee85344dc6619e4bdf40a378ae4a548d4db1df9ecfd |
|
MD5 | 84270e13d4cc11d177e3dfb5decaaa3c |
|
BLAKE2b-256 | 010584f92562864a22b7fa8178c1b7b48926bf529df8951ed0dadb8d80cd8c97 |