Commit 91777d7c authored by stefan's avatar stefan

word2vec file separator bug

parent ddd7a507
......@@ -191,7 +191,7 @@ public class Word2VecModel implements ISemanticModel {
public static void trainModel(String inputFile, int noEpochs, int layerSize) throws FileNotFoundException {
if (!inputFile.startsWith("resources")) {
if (inputFile.contains("resources" + File.separatorChar)) {
inputFile = inputFile.replaceAll(".*resources", "resources");
inputFile = inputFile.replaceAll(".*resources", "resources").replaceAll(File.separator, "/");
}
else {
inputFile = inputFile.replaceAll(".*ReaderBench\\/", "resources/");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment