Package backend.nlp

Class DbSpeechImporter

java.lang.Object
backend.nlp.DbSpeechImporter

public class DbSpeechImporter extends Object
Fetches speeches from the database and processes them with NLP pipelines. Optimized for reliability with fixed thread count and improved error handling.
Author:
Kai
  • Constructor Details

    • DbSpeechImporter

      public DbSpeechImporter() throws IOException
      Constructs a DbSpeechImporter with efficient connection pooling.
      Throws:
      IOException
  • Method Details

    • main

      public static void main(String[] args)
      Main method for testing the importer
    • importSpeeches

      public void importSpeeches(List<String> speechIds, boolean video) throws org.apache.uima.UIMAException, IOException
      Fetches speeches concurrently by provided speech IDs and processes them. Optimized with fixed thread count and improved error handling.
      Parameters:
      speechIds - a list of speech IDs to be fetched and processed
      Throws:
      org.apache.uima.UIMAException
      IOException