fixed method name

This commit is contained in:
Jonas Werner 2025-03-23 14:52:22 +01:00
parent ae126f0df3
commit 6ef665c38f
3 changed files with 5 additions and 5 deletions

View file

@ -816,7 +816,7 @@ public class MongoPprUtils {
return speechIds;
}
public static Map<String, Integer> getPOSInformationCardinalitiesForSpeechById(String speechId) {
List<Token> tokens = getHTMLSpeechByKey(speechId).getNlp().getTokens();
List<Token> tokens = getHtmlSpeechByKey(speechId).getNlp().getTokens();
Map<String, Integer> posCounts = Token.countPOS(tokens);
List<Token> posList = posCounts.entrySet().stream()
@ -829,7 +829,7 @@ public class MongoPprUtils {
public static Map<String, Integer> getNamedEntitiesInformationCardinalitiesForSpeechById(String speechId) {
Map<String, Map<String, Integer>> namedEntitiesMapOfMaps = new HashMap<>();
for (NamedEntity ne : getHTMLSpeechByKey(speechId).getNlp().getNamedEntities()) {
for (NamedEntity ne : getHtmlSpeechByKey(speechId).getNlp().getNamedEntities()) {
String type = ne.getType();
String text = ne.getText();

View file

@ -52,7 +52,7 @@ public class TeXUtil {
tex.append(speech.toTeX());
Map<String, Double> topics = Topic.condenseTopicInformation(getHTMLSpeechByKey(speechId).getNlp().getTopics());
Map<String, Double> topics = Topic.condenseTopicInformation(getHtmlSpeechByKey(speechId).getNlp().getTopics());
// loop through topics and Logger.pink them
for (Map.Entry<String, Double> entry : topics.entrySet()) {
Logger.pink(entry + " " + entry.getValue());
@ -68,7 +68,7 @@ public class TeXUtil {
.replace("$$NLPMETADATA$$",
generateChartView(generateBubbleChartLatex(topics),
generateBarChartLatex(getPOSInformationCardinalitiesForSpeechById(speechId)),
generateRadarChartLatex(getHTMLSpeechByKey(speechId).getNlp().getSentiments()), ""));
generateRadarChartLatex(getHtmlSpeechByKey(speechId).getNlp().getSentiments()), ""));
}
public static String getSpeechToTexComponent(Speech speech) {

View file

@ -107,7 +107,7 @@ public class XMLUtil {
Speech speech = getSpeechByKey(speechId);
Speaker_MongoDB_Impl speaker = getSpeakerById(String.valueOf(speech.getSpeakerId()));
HtmlSpeech htmlSpeech = getHTMLSpeechByKey(speechId);
HtmlSpeech htmlSpeech = getHtmlSpeechByKey(speechId);
addNlpData(doc, htmlSpeech);
speechElement.appendChild(speaker.toXML(doc));