public class WordCountDirectionEstimator extends DirectionEstimator
Note: this is probably the recommended estimator for most use cases.
Constructor and Description |
---|
WordCountDirectionEstimator() |
Modifier and Type | Method and Description |
---|---|
HasDirection.Direction |
estimateDirection(String str)
Estimates the direction of a given string using the "word count" heuristic,
as defined at
BidiUtils.estimateDirection(java.lang.String) . |
static WordCountDirectionEstimator |
get()
Get an instance of WordCountDirectionEstimator.
|
estimateDirection, estimateDirection
public static WordCountDirectionEstimator get()
public HasDirection.Direction estimateDirection(String str)
BidiUtils.estimateDirection(java.lang.String)
.estimateDirection
in class DirectionEstimator
str
- Input string.str
.Copyright © 2018. All rights reserved.