public final class TwitterTextParser extends Object
TwitterTextConfiguration and returns a
TwitterTextParseResults object| Modifier and Type | Field and Description |
|---|---|
static TwitterTextParseResults |
EMPTY_TWITTER_TEXT_PARSE_RESULTS |
static TwitterTextConfiguration |
TWITTER_TEXT_DEFAULT_CONFIG |
| Modifier and Type | Method and Description |
|---|---|
static TwitterTextParseResults |
parseTweet(String tweet)
Parses a given tweet text with the weighted character count configuration (v2.json).
|
static TwitterTextParseResults |
parseTweet(String tweet,
TwitterTextConfiguration config)
Parses a given tweet text with the given
TwitterTextConfiguration |
static TwitterTextParseResults |
parseTweetWithoutUrlExtraction(String tweet)
Returns the weighted length of a tweet without doing any URL processing.
|
public static final TwitterTextParseResults EMPTY_TWITTER_TEXT_PARSE_RESULTS
public static final TwitterTextConfiguration TWITTER_TEXT_DEFAULT_CONFIG
@Nonnull public static TwitterTextParseResults parseTweet(@Nullable String tweet)
tweet - which is to be parsedTwitterTextParseResults object@Nonnull public static TwitterTextParseResults parseTweet(@Nullable String tweet, @Nonnull TwitterTextConfiguration config)
TwitterTextConfigurationtweet - which is to be parsedconfig - TwitterTextConfigurationTwitterTextParseResults object@Nonnull public static TwitterTextParseResults parseTweetWithoutUrlExtraction(@Nullable String tweet)
tweet - which is to be parsedTwitterTextParseResults objectCopyright © 2020. All rights reserved.