Package backend.nlp
Class DbSpeechImporter
java.lang.Object
backend.nlp.DbSpeechImporter
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 Summary
ConstructorsConstructorDescriptionConstructs a DbSpeechImporter with efficient connection pooling. -
Method Summary
Modifier and TypeMethodDescriptionvoidimportSpeeches(List<String> speechIds, boolean video) Fetches speeches concurrently by provided speech IDs and processes them.static voidMain method for testing the importer
-
Constructor Details
-
DbSpeechImporter
Constructs a DbSpeechImporter with efficient connection pooling.- Throws:
IOException
-
-
Method Details
-
main
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.UIMAExceptionIOException
-