Package net.reduls.igo

Examples of net.reduls.igo.Tagger


        }

        // ここにインデックスを作る対象のキーワードを入れる。
        Set<String> keywords = new HashSet<String>();

        Tagger tagger = new Tagger("ipadic/");
        // Titleを文節ごとに分解する。
        List<Morpheme> titleMorphemes = tagger.parse(nicolive.getTitle());
        for (Morpheme morpheme : titleMorphemes) {
            keywords.add(morpheme.surface);
        }

        // Descriptionを文節ごとに分解する。
        try {
            String description =
                    HtmlRemoveUtil.removeHtml(nicolive
                        .getDescription()
                        .getValue());
            List<Morpheme> descriptionMorphemes = tagger.parse(description);
            for (Morpheme morpheme : descriptionMorphemes) {
                keywords.add(morpheme.surface);
            }
        } catch (SAXException e) {
            if (LOGGER.isLoggable(Level.WARNING)) {
View Full Code Here

TOP

Related Classes of net.reduls.igo.Tagger

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.