Package seekfeel.utilities.stanfordwrapper

Examples of seekfeel.utilities.stanfordwrapper.WordPos


        ParsedData resultData = sParser.parse(Words, opts);
        Word featureWord = new Word(feature);
        int featIndex = Words.indexOf(featureWord);
        Sentiment sentimentResult = Sentiment.Neutral;
        if (!feature.equals("") && featIndex != -1) {
            WordPos theFeature = resultData.getWordByIndex(featIndex);
            return classifyTextByFeatures(resultData, Words, theFeature);
        }
        // sentimentResult = classifyTextByNouns(resultData, Words);
        if (sentimentResult == Sentiment.Neutral) {
            sentimentResult = classifyTextByWords(resultData, Words);
View Full Code Here


        ArrayList<token> tokens = sentence.getTokenizedSentence();
        
         int index =0;
        for(token t : tokens)
        {
            WordPos wordPos = new WordPos();
            wordPos.setWordTag(t.getPos());
            wordPos.setWordIndex(index);
            index++;
            posTags.add(wordPos);
            words.add(t.getWord());
        }
    }
View Full Code Here

TOP

Related Classes of seekfeel.utilities.stanfordwrapper.WordPos

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.