Created
November 6, 2016 21:29
-
-
Save robhinds/ec6a35e86f2809f5977746a701bdec3e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| val model = new TokenNameFinderModel(modelIn) | |
| val nameFinder = new NameFinderME(model) | |
| val matches = nameFinder.find(sampleRecipe) | |
| matches.foreach { m => | |
| sampleRecipe.slice(m.getStart, m.getEnd).foreach(println(_)) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment