# Keyword Based Classifier throwing error

**URL:** <https://forum.uipath.com/t/keyword-based-classifier-throwing-error/129760>\
**Category:** Document Understanding\
**Tags:** intelligent-ocr, document-understanding, error, activities\
**Created:** [July 1, 2019, 11:30am UTC](https://forum.uipath.com/t/keyword-based-classifier-throwing-error/129760 "2019-07-01T11:30:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rishabh.jain](https://avatars.discourse-cdn.com/v4/letter/r/f475e1/32.png) [@rishabh.jain](https://forum.uipath.com/u/rishabh.jain)\
**Post date:** [July 1, 2019, 11:30am UTC](https://forum.uipath.com/t/keyword-based-classifier-throwing-error/129760/1 "2019-07-01T11:30:35Z")

</div>

I am trying out MachineLearningExtractor package.  
While using Keyword Based Classifier, I am getting following error.

 ![ErrorScreenshot](https://global.discourse-cdn.com/uipath/original/3X/f/e/fe30ddd5a7b127462162b874b9fdda935bffeb5c.png)  
Please help to get it resolved

---

<div class="post-metadata">

**Author:** ![AdiPopa](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/adipopa/32/69807_2.png) [@AdiPopa](https://forum.uipath.com/u/AdiPopa)\
**Post date:** [July 2, 2019, 6:58am UTC](https://forum.uipath.com/t/keyword-based-classifier-throwing-error/129760/2 "2019-07-02T06:58:02Z")

</div>

Hey,  
It seems that you have an invalid learning JSON.  
When first using the Keyword Based Classifier, you should start with an empty JSON file, something like `[]` (basically, just create a text file with just `[]` in it and make sure the file extension is .json).  
Then, you can use the Keyword Based Classifier inside a Train Classifiers Scope to add to the empty JSON relevant information based on the output of the Validation Station.  
More info on how to use the Keyword Based Classifier here: [https://activities.uipath.com/lang-en/docs/keyword-based-classifier](https://activities.uipath.com/lang-en/docs/keyword-based-classifier) .
