|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.twitter.Extractor
public class Extractor
A class to extract usernames, lists, hashtags and URLs from Tweet text.
Nested Class Summary | |
---|---|
static class |
Extractor.Entity
|
Constructor Summary | |
---|---|
Extractor()
Create a new extractor. |
Method Summary | |
---|---|
java.util.List<java.lang.String> |
extractHashtags(java.lang.String text)
Extract #hashtag references from Tweet text. |
java.util.List<Extractor.Entity> |
extractHashtagsWithIndices(java.lang.String text)
Extract #hashtag references from Tweet text. |
java.util.List<java.lang.String> |
extractMentionedScreennames(java.lang.String text)
Extract @username references from Tweet text. |
java.lang.String |
extractReplyScreenname(java.lang.String text)
Extract a @username reference from the beginning of Tweet text. |
java.util.List<java.lang.String> |
extractURLs(java.lang.String text)
Extract URL references from Tweet text. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Extractor()
Method Detail |
---|
public java.util.List<java.lang.String> extractMentionedScreennames(java.lang.String text)
text
- of the tweet from which to extract usernames
public java.lang.String extractReplyScreenname(java.lang.String text)
text
- of the tweet from which to extract the replied to username
public java.util.List<java.lang.String> extractURLs(java.lang.String text)
text
- of the tweet from which to extract URLs
public java.util.List<java.lang.String> extractHashtags(java.lang.String text)
text
- of the tweet from which to extract hashtags
public java.util.List<Extractor.Entity> extractHashtagsWithIndices(java.lang.String text)
text
- of the tweet from which to extract hashtags
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |