csli.dialog.app.calo.addressee
Class NaiveAddresseeDetector

java.lang.Object
  extended by csli.dialog.app.calo.addressee.AddresseeDetector
      extended by csli.dialog.app.calo.addressee.NaiveAddresseeDetector
All Implemented Interfaces:
Service, AddresseeDetectorService

public class NaiveAddresseeDetector
extends AddresseeDetector

A very naive addressee detector - once initialized on a meeting, the addressee "detected" for a particular utterance is the speaker of the next utterance which is spoken by someone else

Author:
mpurver

Field Summary
 
Fields inherited from class csli.dialog.app.calo.addressee.AddresseeDetector
logger, speakers, speakIds, speaks
 
Constructor Summary
NaiveAddresseeDetector(CorporaOpi_2_0 model)
           
 
Method Summary
 Set<String> detect(String speakId, boolean addToModel)
          Detect addressee(s) for a given Speak event, optionally asserting in the OPI model via the NOMOSAddressee property
 
Methods inherited from class csli.dialog.app.calo.addressee.AddresseeDetector
detect, doMeeting, doSpeak, getGui, getTitle, init, isServiceAlive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NaiveAddresseeDetector

public NaiveAddresseeDetector(CorporaOpi_2_0 model)
Method Detail

detect

public Set<String> detect(String speakId,
                          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:
speakId - the ID of the Speak
addToModel - if true, assert NOMOSAddressee
Returns:
the (possibly empty) Set of IDs of the addressed Persons.