public interface GlobalSuffixFeature<I>
Modifier and Type | Method and Description |
---|---|
boolean |
addGlobalSuffixes(Collection<? extends Word<I>> globalSuffixes)
Add the provided suffixes to the collection of global suffixes.
|
Collection<? extends Word<I>> |
getGlobalSuffixes()
Retrieves the global suffixes of this learner.
|
Collection<? extends Word<I>> getGlobalSuffixes()
LearningAlgorithm.startLearning()
should return an empty collection.
The return value should not be modified; attempting to do so may result in an
UnsupportedOperationException
. It is the implementation's responsibility
to ensure attempted modifications do not corrupt the learner's internal state.
boolean addGlobalSuffixes(Collection<? extends Word<I>> globalSuffixes)
LearningAlgorithm.startLearning()
has been called.
The implementation may choose to (but is not required to) omit suffixes which are already present (that is, manage the global suffixes as a proper set).
globalSuffixes
- the global suffixes to addtrue
if a refinement was triggered by adding the global suffixes,
false otherwise
.Copyright © 2015. All rights reserved.