csli.dialog.app.calo.addressee
Class DummyAddresseeDetector
java.lang.Object
csli.dialog.app.calo.addressee.AddresseeDetector
csli.dialog.app.calo.addressee.DummyAddresseeDetector
- All Implemented Interfaces:
- Service, AddresseeDetectorService
public class DummyAddresseeDetector
- extends AddresseeDetector
A dummy detector - always returns an empty set of addressees for an utterance, and never actually asserts them in
the OPI model
- Author:
- mpurver
|
Constructor Summary |
DummyAddresseeDetector()
As this class is only a dummy, we can initialize it without a model |
|
Method Summary |
Set<String> |
detect(String speak,
boolean addToModel)
Detect addressee(s) for a given Speak event, optionally asserting in the OPI model via the NOMOSAddressee
property |
void |
init(CorporaOpi_2_0 model)
Initialize this addressee detector on a model containing some utterances |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DummyAddresseeDetector
public DummyAddresseeDetector()
- As this class is only a dummy, we can initialize it without a model
init
public void init(CorporaOpi_2_0 model)
- Description copied from class:
AddresseeDetector
- Initialize this addressee detector on a model containing some utterances
- Overrides:
init in class AddresseeDetector
detect
public Set<String> detect(String speak,
boolean addToModel)
- Description copied from class:
AddresseeDetector
- Detect addressee(s) for a given Speak event, optionally asserting in the OPI model via the NOMOSAddressee
property
- Specified by:
detect in class AddresseeDetector
- Parameters:
speak - the ID of the SpeakaddToModel - if true, assert NOMOSAddressee
- Returns:
- the (possibly empty) Set of IDs of the addressed Persons.