Package eu.hlavki.text.lemmagen.impl

Examples of eu.hlavki.text.lemmagen.impl.LemmatizerSettings


    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));
View Full Code Here


    public void trainEnglish() {
        File tmpLemFile = null;
        try {
            tmpLemFile = File.createTempFile("lemmagen", ".lem");
            String format = "WLM";
            LemmatizerSettings settings = new LemmatizerSettings();
//            settings.setUseFromInRules(false);
//            settings.setMsdConsider(MsdConsideration.IGNORE);
//            settings.setMaxRulesPerNode(0);
//            settings.setBuildFrontLemmatizer(true);
View Full Code Here

TOP

Related Classes of eu.hlavki.text.lemmagen.impl.LemmatizerSettings

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.