aboutsummaryrefslogtreecommitdiffstats
path: root/linguistics/src/main/java/com/yahoo/language/process/Segmenter.java
diff options
context:
space:
mode:
Diffstat (limited to 'linguistics/src/main/java/com/yahoo/language/process/Segmenter.java')
-rw-r--r--linguistics/src/main/java/com/yahoo/language/process/Segmenter.java18
1 files changed, 0 insertions, 18 deletions
diff --git a/linguistics/src/main/java/com/yahoo/language/process/Segmenter.java b/linguistics/src/main/java/com/yahoo/language/process/Segmenter.java
index a1df10f481b..6bcafc4ffbd 100644
--- a/linguistics/src/main/java/com/yahoo/language/process/Segmenter.java
+++ b/linguistics/src/main/java/com/yahoo/language/process/Segmenter.java
@@ -25,27 +25,9 @@ public interface Segmenter {
* @param language language of input text.
* @return the list of segments.
* @throws ProcessingException if an exception is encountered during processing
- * @deprecated use the method with a context
*/
- @Deprecated // TODO: Remove on Vespa 8
default List<String> segment(String input, Language language) {
return List.of();
}
- /**
- * Split input-string into tokens, and returned a list of tokens in unprocessed form (i.e. lowercased, normalized
- * and stemmed if applicable, see @link{StemMode} for list of stemming options). It is assumed that the input only
- * contains word-characters, any punctuation and spacing tokens will be removed.
- *
- * This default implementation calls the method without a context.
- *
- * @param input the text to segment.
- * @param language language of input text.
- * @return the list of segments.
- * @throws ProcessingException if an exception is encountered during processing
- */
- default List<String> segment(String input, Language language, LinguisticsContext context) {
- return segment(input, language);
- }
-
}