Finished Javadoc Auther-entries for nlp, work in progress

This commit is contained in:
vysitor 2025-03-23 21:20:06 +01:00
parent f70165a924
commit b831c34f52
23 changed files with 67 additions and 17 deletions

View file

@ -1,5 +1,7 @@
package org.texttechnologylab.project.gruppe_05_1.domain;
/**
* Datei implementiert von Valentin
*/
public enum Gender { // TODO: Delete
M("männlich"),

View file

@ -10,6 +10,9 @@ import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.StringJoiner;
/**
* Datei implementiert von Valentin
*/
public class HtmlSpeech {
String speechKey;
@ -60,7 +63,6 @@ public class HtmlSpeech {
if (nlpDoc == null) return null;
NlpInfo nlp = new NlpInfo();
// TODO: HERE
List<Document> tokensDocs = nlpDoc.get("tokens", MongoDBHandler.DOC_LIST_CLASS);
nlp.setTokens(Token.readTokensFromMongo(tokensDocs));
@ -77,7 +79,6 @@ public class HtmlSpeech {
List<Document> topicsDocs = nlpDoc.get("topics", MongoDBHandler.DOC_LIST_CLASS);
nlp.setTopics(Topic.readTopicsFromMongo(topicsDocs));
// TODO: Video
return nlp;
}

View file

@ -2,7 +2,9 @@ package org.texttechnologylab.project.gruppe_05_1.domain.html;
import java.util.Objects;
import java.util.StringJoiner;
/**
* Datei implementiert von Valentin
*/
public class Parlamentarier {
String id;
String vorname;

View file

@ -8,7 +8,9 @@ import java.time.LocalDate;
import java.util.List;
import java.util.Objects;
import java.util.StringJoiner;
/**
* Datei implementiert von Valentin
*/
public class ParlamentarierDetails {
String id;
String vorname;

View file

@ -2,6 +2,9 @@ package org.texttechnologylab.project.gruppe_05_1.domain.html;
import java.util.Objects;
import java.util.StringJoiner;
/**
* Datei implementiert von Valentin
*/
public class SpeechOverview {
String speechKey;

View file

@ -3,6 +3,9 @@ package org.texttechnologylab.project.gruppe_05_1.domain.mdb;
import java.time.LocalDate;
import java.util.Objects;
import java.util.StringJoiner;
/**
* Datei implementiert von Valentin
*/
public abstract class BiografischeAngaben {

View file

@ -3,6 +3,9 @@ package org.texttechnologylab.project.gruppe_05_1.domain.mdb;
import java.time.LocalDate;
import java.util.Objects;
import java.util.StringJoiner;
/**
* Datei implementiert von Valentin
*/
public abstract class Institution {

View file

@ -1,6 +1,9 @@
package org.texttechnologylab.project.gruppe_05_1.domain.mdb;
public enum Mandatsart {
/**
* Datei implementiert von Valentin
*/
DIREKT("Direktwahl"),
LANDESLISTE("Landesliste"),

View file

@ -3,6 +3,9 @@ package org.texttechnologylab.project.gruppe_05_1.domain.mdb;
import java.util.List;
import java.util.Objects;
import java.util.StringJoiner;
/**
* Datei implementiert von Valentin
*/
public abstract class Mdb {

View file

@ -3,6 +3,9 @@ package org.texttechnologylab.project.gruppe_05_1.domain.mdb;
import java.util.List;
import java.util.Objects;
import java.util.StringJoiner;
/**
* Datei implementiert von Valentin
*/
public abstract class MdbDocument {

View file

@ -3,6 +3,9 @@ package org.texttechnologylab.project.gruppe_05_1.domain.mdb;
import java.time.LocalDate;
import java.util.Objects;
import java.util.StringJoiner;
/**
* Datei implementiert von Valentin
*/
public abstract class MdbName {

View file

@ -4,6 +4,9 @@ import java.time.LocalDate;
import java.util.List;
import java.util.Objects;
import java.util.StringJoiner;
/**
* Datei implementiert von Valentin
*/
public abstract class Wahlperiode {

View file

@ -2,7 +2,9 @@ package org.texttechnologylab.project.gruppe_05_1.domain.nlp;
import java.util.Objects;
import java.util.StringJoiner;
/**
* Datei implementiert von Valentin
*/
public class AudioToken {
private int begin;

View file

@ -2,7 +2,9 @@ package org.texttechnologylab.project.gruppe_05_1.domain.nlp;
import java.util.Objects;
import java.util.StringJoiner;
/**
* Datei implementiert von Valentin
*/
public class Dependency {
String type;
String governor;

View file

@ -7,7 +7,9 @@ import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.StringJoiner;
/**
* Datei implementiert von Valentin
*/
public class NamedEntity {
String type; // PER, LOC etc.
String text;

View file

@ -4,7 +4,9 @@ import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.StringJoiner;
/**
* Datei implementiert von Valentin
*/
public class NlpInfo {
List<Token> tokens;
List<Sentence> sentences;

View file

@ -4,7 +4,9 @@ import org.w3c.dom.Element;
import java.util.Objects;
import java.util.StringJoiner;
/**
* Datei implementiert von Valentin
*/
public class Pos {
String posValue; // ART, NN...
String coarseValue; // PROPN...

View file

@ -2,10 +2,10 @@ package org.texttechnologylab.project.gruppe_05_1.domain.nlp;
import java.util.Objects;
import java.util.StringJoiner;
/**
* Datei implementiert von Valentin
*/
public class Sentence {
// int begin; // TODO: momentan nicht in MongoDB
// int end; // TODO: momentan nicht in MongoDB
String text;
public Sentence() {

View file

@ -8,7 +8,9 @@ import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.StringJoiner;
/**
* Datei implementiert von Valentin
*/
public class Sentiment {
int begin;
int end;

View file

@ -3,7 +3,9 @@ package org.texttechnologylab.project.gruppe_05_1.domain.nlp;
import org.bson.Document;
import java.util.*;
/**
* Datei implementiert von Valentin
*/
public class Token {
String text;
String pos;

View file

@ -5,7 +5,9 @@ import org.w3c.dom.Element;
import java.util.*;
import java.util.stream.Collectors;
/**
* Datei implementiert von Valentin
*/
public class Topic {
String topic;
Double score;

View file

@ -3,7 +3,9 @@ package org.texttechnologylab.project.gruppe_05_1.domain.nlp;
import java.util.List;
import java.util.Objects;
import java.util.StringJoiner;
/**
* Datei implementiert von Valentin
*/
public class VideoInformation {
List<AudioToken> audioTokens;

View file

@ -3,6 +3,7 @@ package org.texttechnologylab.project.gruppe_05_1.domain.nlp.html;
import java.util.Objects;
/**
* Datei implementiert von Valentin
* Diese Klasse ordnet das entspreche Sentiment zu einem Satz zu.
* Sie ist ein Datencontainer für die Darstellung über FreeMarker
*/