Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions examples/test_ml_classification.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from treform.document_classification.ml_textclassification import documentClassifier
import treform as ptm
import os

if __name__ == '__main__':
document_classifier = documentClassifier()
Expand Down Expand Up @@ -27,6 +28,10 @@
model_name = ml_algorithms[7]

#document category and id map

if not os.path.exists("../models/"):
os.mkdir("../models/")

id_category_json = '../models/ml_id_category.json'

#mode is either train or predict
Expand Down