Skip to content

Commit

Permalink
fix apostrophes in input data
Browse files Browse the repository at this point in the history
  • Loading branch information
Mast3rwaf1z committed May 23, 2024
1 parent 091f85f commit ace33f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/Routes/Journals.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ class Journals : public Route {

replace(meta.begin(), meta.end(), '\'', ' ');
replace(question.begin(), question.end(), '\'', ' ');
replace(meta.begin(), meta.end(), '\"', ' ');
replace(question.begin(), question.end(), '\"', ' ');
auto meta_value = run_cmd(format("python ./lib/datasets/sentiment_analysis.py \"{}\"", meta))["stdout"];
auto question_value = run_cmd(format("python ./lib/datasets/sentiment_analysis.py \"{}\"", question))["stdout"];
auto final_value = mean({stod(question_value), stod(meta_value)});
Expand Down

0 comments on commit ace33f7

Please sign in to comment.