|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcsli.dialog.app.calo.topic.classification.topicextraction.CsliOnlineTopicSegmenterService
public abstract class CsliOnlineTopicSegmenterService
| Nested Class Summary | |
|---|---|
class |
CsliOnlineTopicSegmenterService.TopicSegmenterParameters
|
| Constructor Summary | |
|---|---|
CsliOnlineTopicSegmenterService()
|
|
| Method Summary | |
|---|---|
abstract void |
clear()
Clears all the cache files that have been generated by the TopicSegmenterService. |
Topic |
createTopic(String query)
Creates a topic from a query and synonyms of words in the query |
void |
createTopicModel(String meetingUID)
Creates an OPI model containing the TopicDiscussion segmentation derived using getTopicBreaks. |
List<Pair<Double,TopicArea>> |
csliSearchTopic(ArrayList<Pair<Topic,Double>> topics)
|
List<Pair<Double,TopicArea>> |
csliSearchTopic(ArrayList<Pair<Topic,Double>> topics,
long queryIdentifier)
|
abstract List<Pair<Double,TopicArea>> |
csliSearchTopic(Topic t)
|
Pair<XSDDateTime,XSDDateTime> |
extractTopicBoundaries(String meeting,
XSDDateTime time)
Computes the boundaries of the topic surrounding time. |
protected List<Topic> |
findRelevantTopics(Topic ref,
Collection<Topic> topics,
int max,
boolean useThreshold)
Order a Collection of Topics by their relevance (= topic similarity) to a reference Topic |
JPanel |
getGui()
Get a Swing JPanel which provides a GUI to this service. |
String[] |
getQueries()
|
List<Topic> |
getRelevantTopics(String query,
int k,
boolean useThreshold)
Computes the saved topics that are the most relevant to a certain topic or string query. |
abstract Set<XSDDateTime> |
getTopicBreaks(String meeting)
Computes the topic segmentation of the meeting. |
boolean |
isLearning()
|
boolean |
isRelevant(List<String> words,
List<Double> freqs,
Topic topic)
Decides whether a given Topic is relevant to a certain word distribution, expressed as a word list and corresponding frequency list. |
boolean |
isRelevant(String query,
Topic topic)
Decides whether a given Topic is relevant to a certain topic or string query. |
void |
prepareForNewMeeting(String meetingName)
Performs all necessary precomputations when a new meeting is added to the database. |
abstract List<Pair<Double,Pair<String,Pair<XSDDateTime,XSDDateTime>>>> |
searchTopic(Topic t)
Searches for occurences of a topic in the whole corpus. |
void |
setTopicOptions(boolean learning)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface csli.dialog.app.calo.main.Service |
|---|
getTitle, isServiceAlive |
| Constructor Detail |
|---|
public CsliOnlineTopicSegmenterService()
| Method Detail |
|---|
public abstract Set<XSDDateTime> getTopicBreaks(String meeting)
OnlineTopicSegmenterService
getTopicBreaks in interface OnlineTopicSegmenterServicemeeting - the meeting we want to segment
public String[] getQueries()
public Pair<XSDDateTime,XSDDateTime> extractTopicBoundaries(String meeting,
XSDDateTime time)
OnlineTopicSegmenterService
extractTopicBoundaries in interface OnlineTopicSegmenterServicemeeting - the meeting we want to work on.time - the time localization of our focus on the meeting.
public abstract List<Pair<Double,Pair<String,Pair<XSDDateTime,XSDDateTime>>>> searchTopic(Topic t)
OnlineTopicSegmenterService
searchTopic in interface OnlineTopicSegmenterServicepublic JPanel getGui()
Service
getGui in interface Servicepublic Topic createTopic(String query)
OnlineTopicSegmenterService
createTopic in interface OnlineTopicSegmenterServicequery - The query we want to search. Stopwords are removed, and the order of the words does not matter.
protected List<Topic> findRelevantTopics(Topic ref,
Collection<Topic> topics,
int max,
boolean useThreshold)
ref - the reference Topic to find similarity totopics - the Topics to order by similariymax - the maximum number to returnuseThreshold - if true, only return those with similarity >= topic.recognition.relevanceThreshold; if false, return
all
public List<Topic> getRelevantTopics(String query,
int k,
boolean useThreshold)
OnlineTopicSegmenterService
getRelevantTopics in interface OnlineTopicSegmenterServicequery - The query we are searching: if this is the name of a Topic in the pool, that is used; otherwise
treated as plain text.k - Number of topics we want to return.useThreshold - if false, return all topics; if true, only those whose relevance equals or exceeds
topic.recognition.relevanceThreshold.
public boolean isRelevant(String query,
Topic topic)
OnlineTopicSegmenterService
isRelevant in interface OnlineTopicSegmenterServicequery - The query we are searching: if this is the name of a Topic in the pool, that is used; otherwise
treated as plain text.topic - The topic we are checking for relevance.
public boolean isRelevant(List<String> words,
List<Double> freqs,
Topic topic)
OnlineTopicSegmenterService
isRelevant in interface OnlineTopicSegmenterServicewords - The vocabulary for the word distributionfreqs - The (possibly weighted) frequency counts for the word distributiontopic - The topic we are checking for relevance.
public List<Pair<Double,TopicArea>> csliSearchTopic(ArrayList<Pair<Topic,Double>> topics,
long queryIdentifier)
public List<Pair<Double,TopicArea>> csliSearchTopic(ArrayList<Pair<Topic,Double>> topics)
public abstract List<Pair<Double,TopicArea>> csliSearchTopic(Topic t)
public void prepareForNewMeeting(String meetingName)
OnlineTopicSegmenterService
prepareForNewMeeting in interface OnlineTopicSegmenterServicemeetingName - The name of the meeting we add in the corpus.public void setTopicOptions(boolean learning)
setTopicOptions in interface OnlineTopicSegmenterServicepublic boolean isLearning()
isLearning in interface OnlineTopicSegmenterServicepublic abstract void clear()
OnlineTopicSegmenterService
clear in interface OnlineTopicSegmenterServicepublic void createTopicModel(String meetingUID)
OnlineTopicSegmenterService
createTopicModel in interface OnlineTopicSegmenterServicemeetingUID - the meeting we want to segment
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||