Package edu.ucla.sspace.text

Examples of edu.ucla.sspace.text.EnglishStemmer


        public SemEvalHandler() {
            contexts = new ArrayList<Document>();
            inContext = false;
            context = new StringBuilder();
            stemmer = new EnglishStemmer();
        }
View Full Code Here


        if (args.length != 2) {
            System.out.println("Usage: StemTermList <in-term-list> <out-term>");
            System.exit(1);
        }

        Stemmer stemmer = new EnglishStemmer();

        PrintWriter writer = new PrintWriter(args[1]);

        BufferedReader br = new BufferedReader(new FileReader(args[0]));
        for (String line = null; (line=br.readLine()) != null; )
            writer.println(stemmer.stem(line.trim()));
        writer.close();
    }
View Full Code Here

TOP

Related Classes of edu.ucla.sspace.text.EnglishStemmer

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.