public class DomainToModelMap
extends java.lang.Object
| Constructor and Description |
|---|
DomainToModelMap() |
| Modifier and Type | Method and Description |
|---|---|
opennlp.model.MaxentModel |
getModel(ModelDomain domain)
Get the model mapped to by the given ModelDomain key.
|
java.util.Set |
keySet()
A set view of the ModelDomain keys contained in this map.
|
void |
removeDomain(ModelDomain domain)
Removes the mapping for this ModelDomain key from this map if present.
|
void |
setModelForDomain(ModelDomain domain,
opennlp.model.MaxentModel model)
Sets the model for the given domain.
|
public void setModelForDomain(ModelDomain domain, opennlp.model.MaxentModel model)
domain - The ModelDomain object which keys to the model.model - The MaxentModel trained for the domain.public opennlp.model.MaxentModel getModel(ModelDomain domain)
domain - The ModelDomain object which keys to the desired model.public void removeDomain(ModelDomain domain)
domain - The ModelDomain key whose mapping is to be removed from
the map.public java.util.Set keySet()
Copyright ? 2008 Jason Baldridge, Gann Bierner, and Thomas Morton. All Rights Reserved.