public class VariantPhraseBuilderImpl extends Object implements PhraseBuilder
Constructor and Description |
---|
VariantPhraseBuilderImpl(String[] variantAttrNames,
boolean useOriginalText)
Constructor
|
Modifier and Type | Method and Description |
---|---|
String[] |
getPhrases(List<LookupToken> lookupTokenList)
Given a list of LookupTokens, one or more phrases are built.
|
public VariantPhraseBuilderImpl(String[] variantAttrNames, boolean useOriginalText)
variantAttrNames
- Key names of the variant attributes attached to the
LookupToken objects.useOriginalText
- flag that determines whether to use the original text or not.public String[] getPhrases(List<LookupToken> lookupTokenList)
PhraseBuilder
getPhrases
in interface PhraseBuilder
lookupTokenList
- List of LookupTokens.Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.