public class NewlineSentenceDetector extends Object implements SentenceDetector
Constructor and Description |
---|
NewlineSentenceDetector() |
Modifier and Type | Method and Description |
---|---|
String[] |
sentDetect(String s)
Sentence detect a string.
|
Span[] |
sentPosDetect(String s)
Sentence detect a string.
|
public String[] sentDetect(String s)
SentenceDetector
sentDetect
in interface SentenceDetector
s
- The string to be sentence detected.public Span[] sentPosDetect(String s)
SentenceDetector
sentPosDetect
in interface SentenceDetector
s
- The string to be sentence detected.Copyright © 2020 The Apache Software Foundation. All rights reserved.