Package de.jetwick.tw

Examples of de.jetwick.tw.TweetDetector


    public void calcTermsWithoutNoise(JTweet tw) {
        if (tw.getTextTerms().size() > 0)
            return;

        TweetDetector extractor = new TweetDetector().runOne(tw.getText());
        tw.setTextTerms(extractor.getTerms());
        tw.setLanguages(extractor.getLanguages());

        // create text signature, sort against frequency
//        int termsAtOnce = 2;
//        int packs = 3;
//        int maxTerms = packs * termsAtOnce;
 
View Full Code Here


        }

        // some users were only mentioned by others ...
        Collection<JTweet> tweets = user.getOwnTweets();
        if (tweets.size() > 0) {
            TweetDetector extractor = new TweetDetector(tweets);
            List<String> tagList = new ArrayList<String>();
            for (Entry<String, Integer> entry : extractor.run().getSortedTerms()) {
                if (entry.getValue() > termMinFrequency)
                    tagList.add(entry.getKey());
            }
            b.field("tag", tagList);
View Full Code Here

TOP

Related Classes of de.jetwick.tw.TweetDetector

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.