private static final Logger log = LoggerFactory.getLogger(TrainAll.class);
public static void main(String[] args) throws Exception {
File dir = new File(".");
if (dir.isDirectory()) {
LemmatizerSettings settings = new LemmatizerSettings();
settings.setUseFromInRules(false);
settings.setMsdConsider(MsdConsideration.IGNORE);
settings.setMaxRulesPerNode(0);
settings.setBuildFrontLemmatizer(true);
for (File file : dir.listFiles()) {
if (file.getName().endsWith(".tbl")) {
BufferedReader br = null;
try {
br = new BufferedReader(new FileReader(file));