Package com.basistech.rosette.dm
Class MorphoAnalysis.Builder<T extends MorphoAnalysis,B extends MorphoAnalysis.Builder<T,B>>
java.lang.Object
com.basistech.rosette.dm.BaseAttribute.Builder<MorphoAnalysis,MorphoAnalysis.Builder<T,B>>
com.basistech.rosette.dm.MorphoAnalysis.Builder<T,B>
- Direct Known Subclasses:
ArabicMorphoAnalysis.Builder,HanMorphoAnalysis.Builder,KoreanMorphoAnalysis.Builder
- Enclosing class:
- MorphoAnalysis
public static class MorphoAnalysis.Builder<T extends MorphoAnalysis,B extends MorphoAnalysis.Builder<T,B>>
extends BaseAttribute.Builder<MorphoAnalysis,MorphoAnalysis.Builder<T,B>>
Builder for
MorphoAnalysis.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBuilder()Constructs a builder with default values.Builder(MorphoAnalysis toCopy) Constructs a builder from an existing analysis. -
Method Summary
Modifier and TypeMethodDescriptionaddComponent(Token component) Adds a compound component.build()Builds a new immutable morpho analysis from the current state of the builder.components(List<Token> components) Sets all of the compound components.protected BgetThis()Specifies the lemma.partOfSpeech(String partOfSpeech) Specifies the part-of-speech.Specifies the raw analysis.Specifies the tag set.Methods inherited from class com.basistech.rosette.dm.BaseAttribute.Builder
addAllToList, addAllToSet, buildExtendedProperties, extendedProperties, extendedProperty, nullOrList
-
Field Details
-
partOfSpeech
-
lemma
-
components
-
raw
-
tagSet
-
-
Constructor Details
-
Builder
public Builder()Constructs a builder with default values. -
Builder
Constructs a builder from an existing analysis.- Parameters:
toCopy- the object to copy
-
-
Method Details
-
partOfSpeech
Specifies the part-of-speech.- Parameters:
partOfSpeech- the part-of-speech- Returns:
- this
-
lemma
Specifies the lemma.- Parameters:
lemma- the lemma- Returns:
- this
-
raw
Specifies the raw analysis.- Parameters:
raw- the raw analysis- Returns:
- this
-
tagSet
Specifies the tag set.- Parameters:
tagSet- the tag set- Returns:
- this
-
addComponent
Adds a compound component.- Parameters:
component- the component- Returns:
- this
-
components
Sets all of the compound components.- Parameters:
components- the components.- Returns:
- this.
-
build
Builds a new immutable morpho analysis from the current state of the builder.- Returns:
- the new analysis
-
getThis
- Specified by:
getThisin classBaseAttribute.Builder<MorphoAnalysis,MorphoAnalysis.Builder<T extends MorphoAnalysis, B extends MorphoAnalysis.Builder<T, B>>>
-