Package | Description |
---|---|
messif.objects.impl |
Implementation of basic data objects.
|
Modifier and Type | Class and Description |
---|---|
static class |
MetaObjectProfiSCT.MetaObjectProfiSCTKwDistCosine
Object that holds only keywords and measures the distance as the
weighted Cosine distance with weights based on tf-idf algorithm.
|
static class |
MetaObjectProfiSCT.MetaObjectProfiSCTKwDistJaccard
Object that holds only keywords and measures the distance as the
weighted Jaccard with weights based on tf-idf algorithm.
|
static class |
MetaObjectProfiSCT.MetaObjectProfiSCTWithTKStrings
Extension of the MetaObjectProfiSCT that preserves also the title and keywords
strings in both binary and Java serialization.
|
class |
MetaObjectProfiSCTiDIM
Special meta object that stores only the objects required for the Profi search.
|
static class |
MetaObjectProfiSCTiDIM.MetaObjectProfiSCTiDIMKwDistCosine
Object that holds only keywords and measures the distance as the
weighted Cosine distance with weights based on tf-idf algorithm.
|
static class |
MetaObjectProfiSCTiDIM.MetaObjectProfiSCTiDIMWithTKStrings
Extension of the MetaObjectProfiSCT that preserves also the title and keywords
strings in both binary and Java serialization.
|
Modifier and Type | Method and Description |
---|---|
MetaObjectProfiSCT |
MetaObjectProfiSCT.DatabaseSupport.locatorToObject(java.lang.String locator)
Returns the object with given
locator . |
MetaObjectProfiSCT |
MetaObjectProfiSCT.DatabaseSupport.locatorToObject(java.lang.String locator,
boolean remove,
java.lang.String searchWords,
WordExpander expander)
Returns the object with given
locator . |
MetaObjectProfiSCT |
MetaObjectProfiSCT.DatabaseSupport.locatorToObject(java.lang.String locator,
java.lang.String searchWords,
WordExpander expander)
Returns the object with given
locator . |
Modifier and Type | Method and Description |
---|---|
MultiExtractor<? extends MetaObjectProfiSCT> |
MetaObjectProfiSCT.DatabaseSupport.createImageDirExtractor(java.lang.String extractorCommand,
boolean fileAsArgument,
boolean storeObjects)
Creates a new extractor that uses external extractor on a directory of images.
|
Extractor<? extends MetaObjectProfiSCT> |
MetaObjectProfiSCT.DatabaseSupport.createImageExtractor(java.lang.String extractorCommand,
boolean storeObjects,
java.lang.String[] dataLineParameterNames)
Creates a new extractor that uses external image extractor and additional parameters
to create instances of
MetaObjectProfiSCT . |
Extractor<? extends MetaObjectProfiSCT> |
MetaObjectProfiSCT.DatabaseSupport.createLocatorExtractor(java.lang.String locatorParamName,
java.lang.String additionalKeyWordsParamName,
boolean removeObjects)
Creates a new extractor that uses locator parameter of the
ExtractorDataSource to get the respective object from the database. |
IntStorageSearch<MetaObjectProfiSCT> |
MetaObjectProfiSCT.DatabaseSupport.getAllObjects()
Returns a search over all objects in the storage.
|
IntStorageSearch<MetaObjectProfiSCT> |
MetaObjectProfiSCT.DatabaseSupport.getAllObjects(java.lang.Integer fromId,
java.lang.Integer toId)
Returns a search over all objects in the storage.
|
static java.util.Map<java.lang.String,DatabaseStorage.ColumnConvertor<MetaObjectProfiSCT>> |
MetaObjectProfiSCT.DatabaseSupport.getDBColumnMap(boolean addTextStreamColumn,
Stemmer stemmer,
IntStorageIndexed<java.lang.String> wordIndex,
boolean useLinkTable)
Returns the database column definitions for the
MetaObjectProfiSCT object. |
java.lang.Class<? extends MetaObjectProfiSCT> |
MetaObjectProfiSCT.ProfiSCTWeightedCosineDistanceFunction.getDistanceObjectClass() |
static DatabaseStorage.ColumnConvertor<MetaObjectProfiSCT> |
MetaObjectProfiSCT.DatabaseSupport.getTextStreamColumnConvertor(Stemmer stemmer,
IntStorageIndexed<java.lang.String> wordIndex,
boolean useLinkTable)
Returns the database column convertor for creating the
MetaObjectProfiSCT object
from the text stream. |
java.util.Collection<MetaObjectProfiSCT> |
MetaObjectProfiSCT.DatabaseSupport.locatorsToObject(java.lang.String[] locators)
Returns a collection of objects with given
locators . |
Modifier and Type | Method and Description |
---|---|
float |
MetaObjectProfiSCT.ProfiSCTWeightedCosineDistanceFunction.getDistance(MetaObjectProfiSCT o1,
MetaObjectProfiSCT o2) |
java.util.Collection<RankedAbstractObject> |
MetaObjectProfiSCT.DatabaseSupport.rankByKeywords(MetaObjectProfiSCT queryObject,
float[] keyWordWeights,
java.util.Iterator<? extends MetaObjectProfiSCT> iterator)
Returns a collection of ranked objects given by the
iterator with
the distances provided by the weighted Jaccard keyword distance
with word-frequency weights. |
java.util.Collection<RankedAbstractObject> |
MetaObjectProfiSCT.DatabaseSupport.rerankByKeywords(MetaObjectProfiSCT queryObject,
float[] keyWordWeights,
float originalRankWeight,
java.util.Iterator<? extends RankedAbstractObject> iterator)
Returns a collection of ranked objects given by the
iterator with
the distances provided by the weighted Jaccard keyword distance
with word-frequency weights. |
java.util.Collection<RankedAbstractObject> |
MetaObjectProfiSCT.DatabaseSupport.searchByText(MetaObjectProfiSCT object,
float[] weights,
boolean useIdf,
int count)
Returns a collection of objects found by the text search.
|
int |
MetaObjectProfiSCT.DatabaseSupport.storeObject(MetaObjectProfiSCT object)
Store the object into the database storage.
|
void |
MetaObjectProfiSCT.DatabaseSupport.updateObject(int objectId,
MetaObjectProfiSCT object)
Updates the object stored in the database storage.
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection<RankedAbstractObject> |
MetaObjectProfiSCT.DatabaseSupport.rankByKeywords(MetaObjectProfiSCT queryObject,
float[] keyWordWeights,
java.util.Iterator<? extends MetaObjectProfiSCT> iterator)
Returns a collection of ranked objects given by the
iterator with
the distances provided by the weighted Jaccard keyword distance
with word-frequency weights. |
java.util.Collection<RankedAbstractObject> |
MetaObjectProfiSCT.DatabaseSupport.rankByKeywords(java.lang.String[][] referenceKeywords,
float[] keyWordWeights,
java.util.Iterator<? extends MetaObjectProfiSCT> iterator)
Returns a collection of ranked objects given by
iterator with
the distances provided by the weighted Jaccard keyword distance
with word-frequency weights. |
Constructor and Description |
---|
MetaObjectProfiSCT.MetaObjectProfiSCTKwDistCosine(MetaObjectProfiSCT object,
java.lang.Float keywordsWeight,
float[] keywordLayerWeights)
Creates a new instance of MetaObjectProfiSCTKwDistCosine from the given
MetaObjectProfiSCT . |
MetaObjectProfiSCT.MetaObjectProfiSCTKwDistJaccard(MetaObjectProfiSCT object,
java.lang.Float keywordsWeight,
float[] keywordLayerWeights)
Creates a new instance of MetaObjectProfiSCTKwDistJaccard from the given
MetaObjectProfiSCT . |
MetaObjectProfiSCT.MetaObjectProfiSCTWithTKStrings(MetaObjectProfiSCT object)
Creates a new instance of MetaObjectProfiSCTWithTKStrings from the given
MetaObjectProfiSCT . |
MetaObjectProfiSCT.MetaObjectProfiSCTWithTKStrings(MetaObjectProfiSCT object,
java.lang.String titleString,
java.lang.String keywordString,
ObjectIntMultiVectorJaccard keyWords)
Creates a new instance of MetaObjectProfiSCTWithTKStrings from the given
MetaObjectProfiSCT . |
MetaObjectProfiSCT(MetaObjectProfiSCT object)
Creates a new instance of MetaObjectProfiSCT from the given
MetaObjectProfiSCT . |
MetaObjectProfiSCT(MetaObjectProfiSCT object,
int[] searchWordIds)
Creates a new instance of MetaObjectProfiSCT from the given
MetaObjectProfiSCT . |
MetaObjectProfiSCT(MetaObjectProfiSCT object,
java.lang.String[] titleWords,
java.lang.String[] keywordWords,
java.lang.String[] searchWords,
WordExpander expander,
Stemmer stemmer,
IntStorageIndexed<java.lang.String> wordIndex)
Creates a new instance of MetaObjectProfiSCT from the given
MetaObjectProfiSCT
and given title words, key words, and search words. |
MetaObjectProfiSCT(MetaObjectProfiSCT object,
java.lang.String titleString,
java.lang.String keywordString,
ObjectIntMultiVectorJaccard keyWords)
Creates a new instance of MetaObjectProfiSCT from the given
MetaObjectProfiSCT . |
MetaObjectProfiSCT(MetaObjectProfiSCT object,
java.lang.String titleString,
java.lang.String keywordString,
java.lang.String searchString,
WordExpander expander,
Stemmer stemmer,
IntStorageIndexed<java.lang.String> wordIndex)
Creates a new instance of MetaObjectProfiSCT from the given
MetaObjectProfiSCT
and given set of keywords. |
MetaObjectProfiSCT(MetaObjectProfiSCT object,
java.lang.String titleString,
java.lang.String keywordString,
WordExpander expander,
Stemmer stemmer,
IntStorageIndexed<java.lang.String> wordIndex)
Creates a new instance of MetaObjectProfiSCT from the given
MetaObjectProfiSCT
and given set of keywords. |
MetaObjectProfiSCT(MetaObjectProfiSCT object,
java.lang.String searchString,
WordExpander expander,
Stemmer stemmer,
IntStorageIndexed<java.lang.String> wordIndex)
Creates a new instance of MetaObjectProfiSCT from the given
MetaObjectProfiSCT
and given set of keywords. |
MetaObjectProfiSCTiDIM.MetaObjectProfiSCTiDIMKwDistCosine(MetaObjectProfiSCT object,
java.lang.Float keywordsWeight,
ObjectIntMultiVector.WeightProvider kwWeightProvider)
Creates a new instance of MetaObjectProfiSCTiDIMKwDistCosine from the given
MetaObjectProfiSCT . |
MetaObjectProfiSCTiDIM.MetaObjectProfiSCTiDIMWithTKStrings(MetaObjectProfiSCT object)
Creates a new instance of MetaObjectProfiSCTiDIMWithTKStrings from the given
MetaObjectProfiSCT . |
MetaObjectProfiSCTiDIM.MetaObjectProfiSCTiDIMWithTKStrings(MetaObjectProfiSCT object,
boolean clearKeywords) |
MetaObjectProfiSCTiDIM.MetaObjectProfiSCTiDIMWithTKStrings(MetaObjectProfiSCT object,
java.lang.String titleString,
java.lang.String keywordString,
ObjectIntMultiVectorJaccard keyWords)
Creates a new instance of MetaObjectProfiSCTiDIMWithTKStrings from the given
MetaObjectProfiSCT . |
MetaObjectProfiSCTiDIM(MetaObjectProfiSCT object) |
MetaObjectProfiSCTiDIM(MetaObjectProfiSCT object,
int[] searchWordIds) |
MetaObjectProfiSCTiDIM(MetaObjectProfiSCT object,
java.lang.String titleString,
java.lang.String keywordString,
ObjectIntMultiVectorJaccard keyWords) |
MetaObjectProfiSCTiDIM(MetaObjectProfiSCT object,
java.lang.String titleString,
java.lang.String keywordString,
java.lang.String searchString,
WordExpander expander,
Stemmer stemmer,
IntStorageIndexed<java.lang.String> wordIndex) |
MetaObjectProfiSCTiDIM(MetaObjectProfiSCT object,
java.lang.String titleString,
java.lang.String keywordString,
WordExpander expander,
Stemmer stemmer,
IntStorageIndexed<java.lang.String> wordIndex) |
MetaObjectProfiSCTiDIM(MetaObjectProfiSCT object,
java.lang.String searchString,
WordExpander expander,
Stemmer stemmer,
IntStorageIndexed<java.lang.String> wordIndex) |