Unsupervised automatic detector of random text based on the algorithm described in this blog post. The interactive version is available on random-text-detector.herokuapp.com. Sample training and result data is in the data dictionary.
- Install sbt with
brew install sbtor in any other way git clone https://github.com/mkrcah/random-text-detector.gitcd random-text-detectsbt stage- Run
./target/universal/stage/bin/random-text-detector
Usage: random-text-detector start-server|batch filename
Options:
batchCompute suspicious score for each word in a given list and print the result to stdin.start-serverStart an http server on the port specified by the PORT env property or 8080 if not specified. CallGET /api/detect?q=your-wordto get a suspicious score for your-word. Navigate your browser to/or/index.htmlfor the interactive version.filenameFile containing a list of words, each word on a separate line.
The code should be directly deployable to Heroku.