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);