Skip to content

Commit

Permalink
Changed path handling to search for morphotagger model
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterisP committed Oct 31, 2014
1 parent d347413 commit 8461f9f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/lv/lumii/expressions/Expression.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,12 @@ public static void setClassifier(AbstractSequenceClassifier<CoreLabel> preloaded
}

public static void initClassifier() throws Exception {
initClassifier("../LVTagger/models/lv-morpho-model.ser.gz"); // FIXME - nepamatoti paļaujamies ka tur tāds modelis būs
// FIXME - nepamatoti paļaujamies ka tur tāds modelis būs
try {
initClassifier("../LVTagger/models/lv-morpho-model.ser.gz");
} catch (java.io.FileNotFoundException e) {
initClassifier("../../LVTagger/models/lv-morpho-model.ser.gz");
}
}

/*
Expand Down

0 comments on commit 8461f9f

Please sign in to comment.