Markov Chain Algorithm for natural language text transformation.
- markov-chain-lib - Provides
MarkovChainBuilderclass for configuring new instances ofMarkovChainfrom a source natural language text file according to some different possible settings. With a configuredMarkovChaininstance in hands new pseud-random text can be generated on demand. - markov-web-tool - Uses Spring Boot to create an uber jar providing a standalone web-application that used the above Markov Chain Library from the aforementioned module. The front-end is a simple single-paged AngularJS application styled with straight Booststrap CSS that talks to the back-end through a Restful API built uppon Spring Framework stack.
- Java 8 JDK
- Maven 3
In the project root (markov-parent) run maven install, what will also build both modules.
$ mvn clean installAfter a Successful build, you are ready to goa with the markov-web-tool uber jar, just run it and spring-boot will take care of serving the web service in port 8080.
java -jar markov-web-tool/target/markov-web-tool-1.0.0.jarAfter a few seconds the web application will be available in http://localhost:8080.
Enjoy!