public class ConfigurablePOSContextGenerator extends java.lang.Object implements POSContextGenerator
| Constructor and Description |
|---|
ConfigurablePOSContextGenerator(AdaptiveFeatureGenerator featureGenerator)
Initializes the current instance.
|
ConfigurablePOSContextGenerator(int cacheSize,
AdaptiveFeatureGenerator featureGenerator)
Initializes the current instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
getContext(int index,
java.lang.String[] tokens,
java.lang.String[] tags,
java.lang.Object[] additionalContext)
Returns the context for making a pos tag decision at the specified token index
given the specified tokens and previous tags.
|
public ConfigurablePOSContextGenerator(int cacheSize,
AdaptiveFeatureGenerator featureGenerator)
cacheSize - public ConfigurablePOSContextGenerator(AdaptiveFeatureGenerator featureGenerator)
public java.lang.String[] getContext(int index,
java.lang.String[] tokens,
java.lang.String[] tags,
java.lang.Object[] additionalContext)
getContext in interface POSContextGeneratorgetContext in interface BeamSearchContextGenerator<java.lang.String>index - The index of the token for which the context is provided.tokens - The tokens in the sentence.tags - The tags assigned to the previous words in the sentence.additionalContext - Any addition context specific to a class implementing this interface.Copyright © 2010 - 2023 Adobe. All Rights Reserved