Search in sources :

Example 1 with TagsFtSearch

use of org.vitrivr.cineast.core.features.TagsFtSearch in project cineast by vitrivr.

the class TextRetrievalCommand method run.

public void run() {
    final ContinuousRetrievalLogic retrieval = new ContinuousRetrievalLogic(Config.sharedConfig().getDatabase());
    System.out.println("Querying for text " + text);
    TextQueryTermContainer qc = new TextQueryTermContainer(text);
    List<Retriever> retrievers = new ArrayList<>();
    retrievers.add(new SubtitleFulltextSearch());
    retrievers.add(new OCRSearch());
    retrievers.add(new AudioTranscriptionSearch());
    retrievers.add(new DescriptionTextSearch());
    retrievers.add(new TagsFtSearch());
    CliUtils.retrieveAndLog(retrievers, retrieval, limit, printDetail, qc);
    System.out.println("Done");
}
Also used : Retriever(org.vitrivr.cineast.core.features.retriever.Retriever) SubtitleFulltextSearch(org.vitrivr.cineast.core.features.SubtitleFulltextSearch) AudioTranscriptionSearch(org.vitrivr.cineast.core.features.AudioTranscriptionSearch) ContinuousRetrievalLogic(org.vitrivr.cineast.standalone.util.ContinuousRetrievalLogic) DescriptionTextSearch(org.vitrivr.cineast.core.features.DescriptionTextSearch) ArrayList(java.util.ArrayList) TextQueryTermContainer(org.vitrivr.cineast.core.data.query.containers.TextQueryTermContainer) OCRSearch(org.vitrivr.cineast.core.features.OCRSearch) TagsFtSearch(org.vitrivr.cineast.core.features.TagsFtSearch)

Aggregations

ArrayList (java.util.ArrayList)1 TextQueryTermContainer (org.vitrivr.cineast.core.data.query.containers.TextQueryTermContainer)1 AudioTranscriptionSearch (org.vitrivr.cineast.core.features.AudioTranscriptionSearch)1 DescriptionTextSearch (org.vitrivr.cineast.core.features.DescriptionTextSearch)1 OCRSearch (org.vitrivr.cineast.core.features.OCRSearch)1 SubtitleFulltextSearch (org.vitrivr.cineast.core.features.SubtitleFulltextSearch)1 TagsFtSearch (org.vitrivr.cineast.core.features.TagsFtSearch)1 Retriever (org.vitrivr.cineast.core.features.retriever.Retriever)1 ContinuousRetrievalLogic (org.vitrivr.cineast.standalone.util.ContinuousRetrievalLogic)1