All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.latinolib.Main Maven / Gradle / Ivy

package org.latinolib;

import org.latinolib.stemmer.PorterStemmer;

import java.io.IOException;
import static org.latinolib.Language.*;

public class Main
{
    public static void main(String[] args) throws IOException {
        System.out.println(new PorterStemmer().getStem("friendships"));
        System.out.println(EN.getLemmatizer().getStem("trilogies"));
        System.out.println(SL.getLemmatizer().getStem("trilogije"));
        System.out.println(EN.getStopWords().isStopWord("him"));
        System.out.println(EN.getStopWords().isStopWord("awesome"));
        System.out.println(Language.detect("This is some English text."));
        System.out.println(Language.detect("This is some English text."));
        System.out.println(Language.detect("To je slovenski stavek."));
        System.out.println(Language.detect("Eesti keel (varasem nimetus: maakeel) on läänemeresoome lõunarühma kuuluv keel. Selle lähemad sugulased on läänemeresoome keeled vadja ja liivi keel."));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy