From 23d1099d322cc1268012753d30a3ae44ef598575 Mon Sep 17 00:00:00 2001 From: gsingers Date: Mon, 4 Mar 2013 08:26:52 -0500 Subject: [PATCH] fix location of models per book instructions --- .../java/com/tamingtext/frankenstein/Frankenstein.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/test/java/com/tamingtext/frankenstein/Frankenstein.java b/src/test/java/com/tamingtext/frankenstein/Frankenstein.java index 7979908..f3d3e91 100644 --- a/src/test/java/com/tamingtext/frankenstein/Frankenstein.java +++ b/src/test/java/com/tamingtext/frankenstein/Frankenstein.java @@ -220,13 +220,13 @@ private void addMetadata(Document doc, int lines, int paragraphs, int paragraphL */ private void init() throws IOException { System.out.println("Initializing Frankenstein"); - File models = new File("../../opennlp-models"); - File wordnet = new File("../../WordNet-3.0"); + File models = new File("./opennlp-models"); + File wordnet = new File("./WordNet-3.0"); if (models.exists() == false) { - throw new FileNotFoundException("../../opennlp-models"); + throw new FileNotFoundException("./opennlp-models"); } - System.setProperty("model.dir", "../../opennlp-models"); - System.setProperty("wordnet.dir", "../../WordNet-3.0"); + System.setProperty("model.dir", "./opennlp-models"); + System.setProperty("wordnet.dir", "./WordNet-3.0"); File modelFile = new File(models, "en-sent.bin"); InputStream modelStream = new FileInputStream(modelFile);