anl.aida.algo
Class DefaultConceptGenerator
java.lang.Object
anl.aida.algo.DefaultConceptGenerator
- All Implemented Interfaces:
- ConceptGenerator
public class DefaultConceptGenerator
- extends java.lang.Object
- implements ConceptGenerator
Generates scored concepts from a predetermined list of concepts.
Field Summary |
private java.util.List<Keyword> |
concepts
|
private anl.aida.core.ScoredTermsCollection |
stc
|
Constructor Summary |
DefaultConceptGenerator(java.util.Collection<Keyword> concepts,
anl.aida.core.ScoredTermsCollection stc)
Creates a DefaultConceptGenerator. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
concepts
private java.util.List<Keyword> concepts
stc
private anl.aida.core.ScoredTermsCollection stc
DefaultConceptGenerator
public DefaultConceptGenerator(java.util.Collection<Keyword> concepts,
anl.aida.core.ScoredTermsCollection stc)
- Creates a DefaultConceptGenerator. The scored
results will be retrieved from the stc.
- Parameters:
concepts
- stc
-
generateConcepts
public java.lang.Iterable<ScoredKeyword> generateConcepts(int count)
throws anl.aida.util.AIDAException,
java.io.IOException
- Description copied from interface:
ConceptGenerator
- Generate the specified number of concepts.
- Specified by:
generateConcepts
in interface ConceptGenerator
- Parameters:
count
- the suggested number of concepts to generate.
- Returns:
- the concepts as MIFSTerms
- Throws:
anl.aida.util.AIDAException
- if there is an error during generation
java.io.IOException
- if there is an error during generation