fixed method name
This commit is contained in:
parent
ae126f0df3
commit
6ef665c38f
3 changed files with 5 additions and 5 deletions
|
@ -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();
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue