public class DomainToModelMap extends Object
Constructor and Description |
---|
DomainToModelMap() |
Modifier and Type | Method and Description |
---|---|
MaxentModel |
getModel(ModelDomain domain)
Get the model mapped to by the given ModelDomain key.
|
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,
MaxentModel model)
Sets the model for the given domain.
|
public void setModelForDomain(ModelDomain domain, MaxentModel model)
domain
- The ModelDomain object which keys to the model.model
- The MaxentModel trained for the domain.public 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 Set keySet()
Copyright © 2016 The Apache Software Foundation. All rights reserved.