Finished Javadoc Auther-entries for rest, work in progress

This commit is contained in:
vysitor 2025-03-23 21:32:09 +01:00
parent cd40f5a16a
commit a83bf93806
5 changed files with 20 additions and 4 deletions

View file

@ -48,7 +48,9 @@ public class NlpUtils {
private static final String TYPE_SYSTEM_DESCRIPTOR_PATH = "/speeches/TypeSystem.xml.gz";
private static final int MAX_FEATURE_LENGTH = 10000;
/**
* implementiert von Valentin
*/
public static void createNlpData() {
duuiInit();
runDockerDriver();
@ -67,6 +69,9 @@ public class NlpUtils {
createSentimentInfo();
}
/**
* implementiert von Valentin
*/
private static void duuiInit() {
DUUILuaContext ctx;
@ -115,6 +120,7 @@ public class NlpUtils {
}
/**
* implementiert von Valentin
* Initialization of a sample CAS document
* @return JCas object
*/
@ -142,7 +148,9 @@ public class NlpUtils {
return pCas;
}
/**
* implementiert von Valentin
*/
public static void runDockerDriver() {
// reset existing pipeline-components
@ -187,7 +195,9 @@ public class NlpUtils {
Logger.info(JCasUtil.selectCovered(org.hucompute.textimager.uima.type.Sentiment.class, sentence).toString());
});
}
/**
* implementiert von Valentin
*/
private static void casInit() {
JCas jcas;
try {
@ -241,6 +251,7 @@ public class NlpUtils {
/**
* implementiert von Valentin
* Execution of video processing via DUUI using the RemoteDriver
* @throws Exception in case of an error
*/

View file

@ -9,6 +9,7 @@ import java.io.InputStream;
import java.util.Properties;
/**
* Datei implementiert von Valentin
* Diese Klasse dient der Konfiguruerung von Javalin
*/
public class JavalinConfig extends Properties {

View file

@ -15,6 +15,7 @@ import java.util.List;
import java.util.Map;
/**
* Datei implementiert von Valentin
* Dieser Kontroller zeigt Informationen um den Parlamentariern:
* 1. Die Einstiegsseite: eine Filter-fähige Auflistung der Parlamentariern.
* Angezeigt werden Vor- und Nachname, Partei sowie ID.

View file

@ -15,6 +15,9 @@ import java.io.IOException;
import static org.texttechnologylab.project.gruppe_05_1.Main.JAVALIN_STATIC_FILES_DIR;
import static org.texttechnologylab.project.gruppe_05_1.Main.JAVALIN_TEMPLATE_DIR;
/**
* Datei implementiert von Valentin
*/
public class RESTHandler {
public void startJavalin() {

View file

@ -24,6 +24,7 @@ import java.util.stream.Collectors;
public class SpeechController {
/**
* Datei implementiert von Valentin
* Liste alle Reden eines Parlamentariers an
* @param ctx Javalin Context
*/
@ -237,7 +238,6 @@ public class SpeechController {
tags = {"Rede"},
queryParams = {
@OpenApiParam(name = "filter", description = "Full-Text-Filter. Kann Vorname, Nachname oder Partei filtern", required = false),
// TODO: Topic Filter
},
responses = {
@OpenApiResponse(status = "200", content = {@OpenApiContent(from = Speech[].class)})