<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.expertiza.ncsu.edu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Sponnur</id>
	<title>Expertiza_Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.expertiza.ncsu.edu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Sponnur"/>
	<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Special:Contributions/Sponnur"/>
	<updated>2026-07-04T09:22:32Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2150._Integrate_suggestion_detection_algorithm&amp;diff=142262</id>
		<title>CSC/ECE 517 Fall 2021 - E2150. Integrate suggestion detection algorithm</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2150._Integrate_suggestion_detection_algorithm&amp;diff=142262"/>
		<updated>2021-11-30T03:13:27Z</updated>

		<summary type="html">&lt;p&gt;Sponnur: /* Javascript implementation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Problem Definition ==&lt;br /&gt;
Peer-review systems like Expertiza utilize a lot of students’ input to determine each other’s performance. At the same time, students learn from the reviews they receive to improve their own performance. In order to make this happen, it would be good to have everyone give quality reviews instead of generic ones. Currently, Expertiza has a few classifiers that can detect useful features of review comments, such as whether they contain suggestions. The suggestion-detection algorithm has been coded as a web service, and other detection algorithms, such as problem detection and sentiment analysis, also exist as newer web services. We need to make the UI more intuitive by allowing users to view the feedback of specific review comments and the code needs to be refactored to remove redundancy to follow the DRY principle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Previous Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The previous implementation added the following features:&lt;br /&gt;
# Setup a config file 'review_metric.yml' where the instructor can select what review metric to display for the current assignments&lt;br /&gt;
# API calls (sentiment, problem, suggestion) are made and a table is rendered below, displaying the feedback of the review comments.&lt;br /&gt;
# The total time taken by the API calls was also displayed.&lt;br /&gt;
&lt;br /&gt;
=== UI Screenshots ===&lt;br /&gt;
The following image shows how a reviewer interacts with the system to get feedback on the review comments.&lt;br /&gt;
[[File:Steps_metric.png|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
=== Control Flow ===&lt;br /&gt;
&lt;br /&gt;
[[File:Review_metric.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Issues with Previous Work ==&lt;br /&gt;
&lt;br /&gt;
With the previous implementation of this project, students can write comments and request feedback for the comments. There are certain issues with the previous implementation that needs to be addressed.&lt;br /&gt;
&lt;br /&gt;
# The criteria are numbered in the view, and those numbers do not correspond to anything on the rubric form.  So if the rubric is long, it would be quite difficult for the reviewer to figure out what automated feedback referred to which comment.&lt;br /&gt;
# There are too many hardcoded values present in the previously implemented code. We plan to move these hardcoded values to a configuration file and access them when needed.&lt;br /&gt;
# Currently there are many repetitive blocks of code. For Ex.; in _response_analysis.html for the getReviewFeedback(), the API call for each type of tag (sentiment, suggestion, etc) is being repeated. Only the API link differs there.&lt;br /&gt;
#  The previous implementation takes the text area field in the view to fetch the review comment, but it’s not updated dynamically when the user types a comment. The user needs to save the form then go back to edit view and then request feedback.&lt;br /&gt;
&lt;br /&gt;
== Proposed Solution ==&lt;br /&gt;
[[File:PreviousImplementation.jpeg|1000px|thumb| center | previous Implementation]]&lt;br /&gt;
# We need to improve the UI so that if there are many rubric items, users can easily check the feedback for each comment given to each rubric item. We propose the following  solution&lt;br /&gt;
## Each comment on hover shows the user's respective comment on the specific rubric review question so that the feedback is easily accessible.&lt;br /&gt;
### On click of the get review feedback button, we loop through the dynamically created review question form and store the mapping of questions and the reviewer's corresponding comments which on hovered are displayed as a popup.  &lt;br /&gt;
[[File:Proposedsolution.jpeg|1000px|thumb| center | LOFI Design of Proposed Solution]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# Another issue with the current implementation is that code is quite repetitive for making different API calls  (Sentiment, Suggestion, etc). We propose to store the API link in the config file and refer to the variable in the getReviewFeedback()&lt;br /&gt;
# We also plan to remove a global variable response_general, which is being used to store the response of API calls. We will refactor the makeRequest function to directly return the response which can be used in various places. This will resolve implicit coupling issues in the code and make it more easily extendable. &lt;br /&gt;
# The previous implementation has hardcoded configuration information like the help text button. We propose to save this information in config files which can be easily modified and will remove unnecessary information from the code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Implementation == &lt;br /&gt;
&lt;br /&gt;
=== UI Changes ===&lt;br /&gt;
We refactored the UI of the generated table showing the problem, suggestion, and sentiment of the review comment, by adding a tooltip for prompting the Question and its corresponding review comment in the table itself. &lt;br /&gt;
==== UI screenshots ====&lt;br /&gt;
[[File:Review_table.PNG|500px|thumb|center]]&lt;br /&gt;
[[File:Retry.PNG|400px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
==== Javascript implementation ====&lt;br /&gt;
#Description - We have added a tooltip in front of every comment number, which on hovering shows the question for which the feedback is given as well as the review comment given for that question.&lt;br /&gt;
#File changed - app/views/response/_response_analysis.html.erb&lt;br /&gt;
[[File:Ui.PNG|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
=== Bug Fixes (Dynamic Feedback) ===&lt;br /&gt;
Previously, the implementation took into account the text area field because of which we need to save the form before getting the feedback. We changed the implementation so that users can type in a review comment and dynamically get feedback on it before saving.&lt;br /&gt;
[[File:Bug-fix-1.PNG|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
==== Javascript implementation ====&lt;br /&gt;
#Description - The global variable response_general was used to store the response, which was not needed as the Promise will return the response and we threw an error in case of rejection, which is handled makeRequest method&lt;br /&gt;
#File changed - app/views/response/_response_analysis.html.erb&lt;br /&gt;
[[File:Api refact.PNG|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
=== Refactoring (removing code duplication) ===&lt;br /&gt;
In the previous implementation, code was duplicated for handling different scenarios of fetching the review comment. The code was mostly the same with some conditions. We abstracted the functionality into a method that can be used at multiple places instead of duplicating the code. &lt;br /&gt;
&lt;br /&gt;
Also, the previous implementation was counting the number of rubric questions by parsing the DOM Structure, we refactored that logic as well.&lt;br /&gt;
&lt;br /&gt;
==== Javascript implementation ====&lt;br /&gt;
#Description  - The internal function create_comment_object is used for generating comment object according to question and class_name of DOM. This comment JSON is then used to pass to the API for fetching the predictions. &lt;br /&gt;
#File changed - app/views/response/_response_analysis.html.erb&lt;br /&gt;
[[File:Create_comment_object.PNG|1200px|thumb|center]]&lt;br /&gt;
[[File:While_loo.PNG|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Error handling improvements ===&lt;br /&gt;
We introduced error handling by changing the “Loading…” text to “Request failed. Please try again.” if the API for generating feedback fails. Previously, this  case was not handled&lt;br /&gt;
==== Javascript implementation ====&lt;br /&gt;
#Description - We have added try-catch blocks while making API call, and if the promise is rejected we catch the error and change the “Loading…” text at the bottom to “Request failed. Please try again.”&lt;br /&gt;
#Files changed - app/views/response/_response_analysis.html.erb&lt;br /&gt;
[[File:Request_error.PNG|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
[[File:Request error 2.PNG|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
=== Refactoring (Removing Hardcoded Values) ===&lt;br /&gt;
In the previous implementation the api urls for each analysis and the tool tip description for the analysis were hardcoded into the files. We moved theses values out into the config file below and the values for each of the hardcoded analysis values can be accessed anywhere in the _response_analysis.html.erb file which handles the processing for the analysis. This allows any hardcoded analysis value to be found in one location along with making it easier to append other hardcoded values to each analysis. &lt;br /&gt;
&lt;br /&gt;
[[File:Config File.PNG|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
=== Refactoring (removing duplicate api values) ===&lt;br /&gt;
In the previous implementation each analysis in the _response_analysis.html.erb file had its own block of code for getting the response message, processing values and displaying it to the table. The issue was that many analysis had duplicate blocks of code for getting response message, processing data, and displaying data with only a few analysis requiring different getting, processing, and displaying methods. In the new implementation a for loop would loop through each analysis and would run a default block of code for getting, processing, and displaying data unless the analysis had its own unique getting, processing, and displaying methods where an if statement in the for loop would run the blocks of code for the given method.&lt;br /&gt;
&lt;br /&gt;
[[File:ResponseOld.PNG|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
[[File:ResponseNew.PNG|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
===Files edited === &lt;br /&gt;
# review_metrics.yml&lt;br /&gt;
# response.html.erb&lt;br /&gt;
# _response_analysis.html.erb&lt;br /&gt;
# response_controller.rb&lt;br /&gt;
# response_controller_spec.rb&lt;br /&gt;
&lt;br /&gt;
== Sample API Input/Output ==&lt;br /&gt;
* Input Text is passed in the following JSON format&lt;br /&gt;
  { &lt;br /&gt;
      &amp;quot;text&amp;quot;: &amp;quot;This is an excellent project. Keep up the great work&amp;quot; &lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
* Output is returned in the following JSON format:&lt;br /&gt;
  {          &lt;br /&gt;
      &amp;quot;sentiment_score&amp;quot;: 0.9,&lt;br /&gt;
      &amp;quot;sentiment_tone&amp;quot;: &amp;quot;Positive&amp;quot;,&lt;br /&gt;
      &amp;quot;suggestions&amp;quot;: &amp;quot;absent&amp;quot;,&lt;br /&gt;
      &amp;quot;suggestions_chances&amp;quot;: 10.17,&lt;br /&gt;
      &amp;quot;text&amp;quot;: &amp;quot;This is an excellent project. Keep up the great work&amp;quot;,&lt;br /&gt;
      &amp;quot;total_volume&amp;quot;: 10,&lt;br /&gt;
      &amp;quot;volume_without_stopwords&amp;quot;: 6&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
== Testing Plan ==&lt;br /&gt;
&lt;br /&gt;
===Automated Test===&lt;br /&gt;
&lt;br /&gt;
====spec/controllers/response_controller_spec.rb====&lt;br /&gt;
&lt;br /&gt;
Added a test that confirms the correct API URLS are being pulled from the config file.&lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2021-11-29 at 10.43.16 AM.png|600px]]&lt;br /&gt;
&lt;br /&gt;
===Manual Test===&lt;br /&gt;
&lt;br /&gt;
#The functionality was written on the client side in javascript solely in _response_analysis.html.erb&lt;br /&gt;
#To test this view, any type of review must be accessible as a student.&lt;br /&gt;
#There is a button at the bottom of the review called 'Get Review Feedback'.&lt;br /&gt;
#When pressing button, API calls are issued and the metrics will show up within the table (a sample of which is shown in above screenshot).&lt;br /&gt;
#As API calls will take time, 'Loading..' text will appear until the API calls are complete&lt;br /&gt;
#All the review feedback for the comments will be displayed in a colorful table.&lt;br /&gt;
#In the feedback table, upon hovering on the comment number, we will be able to see the rubric item and review comments associated with that particular rubric item&lt;br /&gt;
&lt;br /&gt;
== Important Links ==&lt;br /&gt;
# https://docs.google.com/document/d/1slx4HPIbgTH-psIKMSCF-HDF9brxf-FuYhzVT9ZiIrM/edit#heading=h.fxfungdw1d5r&lt;br /&gt;
# https://github.com/expertiza/expertiza/pull/2159&lt;br /&gt;
# https://youtu.be/oN7qCNTFBE8&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
&lt;br /&gt;
* Prashan Sengo (psengo)&lt;br /&gt;
&lt;br /&gt;
* Griffin Brookshire (glbrook2)&lt;br /&gt;
&lt;br /&gt;
* Divyang Doshi (ddoshi2)&lt;br /&gt;
&lt;br /&gt;
* Srujan Ponnur (sponnur)&lt;/div&gt;</summary>
		<author><name>Sponnur</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2150._Integrate_suggestion_detection_algorithm&amp;diff=142261</id>
		<title>CSC/ECE 517 Fall 2021 - E2150. Integrate suggestion detection algorithm</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2150._Integrate_suggestion_detection_algorithm&amp;diff=142261"/>
		<updated>2021-11-30T03:13:16Z</updated>

		<summary type="html">&lt;p&gt;Sponnur: /* Implementation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Problem Definition ==&lt;br /&gt;
Peer-review systems like Expertiza utilize a lot of students’ input to determine each other’s performance. At the same time, students learn from the reviews they receive to improve their own performance. In order to make this happen, it would be good to have everyone give quality reviews instead of generic ones. Currently, Expertiza has a few classifiers that can detect useful features of review comments, such as whether they contain suggestions. The suggestion-detection algorithm has been coded as a web service, and other detection algorithms, such as problem detection and sentiment analysis, also exist as newer web services. We need to make the UI more intuitive by allowing users to view the feedback of specific review comments and the code needs to be refactored to remove redundancy to follow the DRY principle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Previous Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The previous implementation added the following features:&lt;br /&gt;
# Setup a config file 'review_metric.yml' where the instructor can select what review metric to display for the current assignments&lt;br /&gt;
# API calls (sentiment, problem, suggestion) are made and a table is rendered below, displaying the feedback of the review comments.&lt;br /&gt;
# The total time taken by the API calls was also displayed.&lt;br /&gt;
&lt;br /&gt;
=== UI Screenshots ===&lt;br /&gt;
The following image shows how a reviewer interacts with the system to get feedback on the review comments.&lt;br /&gt;
[[File:Steps_metric.png|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
=== Control Flow ===&lt;br /&gt;
&lt;br /&gt;
[[File:Review_metric.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Issues with Previous Work ==&lt;br /&gt;
&lt;br /&gt;
With the previous implementation of this project, students can write comments and request feedback for the comments. There are certain issues with the previous implementation that needs to be addressed.&lt;br /&gt;
&lt;br /&gt;
# The criteria are numbered in the view, and those numbers do not correspond to anything on the rubric form.  So if the rubric is long, it would be quite difficult for the reviewer to figure out what automated feedback referred to which comment.&lt;br /&gt;
# There are too many hardcoded values present in the previously implemented code. We plan to move these hardcoded values to a configuration file and access them when needed.&lt;br /&gt;
# Currently there are many repetitive blocks of code. For Ex.; in _response_analysis.html for the getReviewFeedback(), the API call for each type of tag (sentiment, suggestion, etc) is being repeated. Only the API link differs there.&lt;br /&gt;
#  The previous implementation takes the text area field in the view to fetch the review comment, but it’s not updated dynamically when the user types a comment. The user needs to save the form then go back to edit view and then request feedback.&lt;br /&gt;
&lt;br /&gt;
== Proposed Solution ==&lt;br /&gt;
[[File:PreviousImplementation.jpeg|1000px|thumb| center | previous Implementation]]&lt;br /&gt;
# We need to improve the UI so that if there are many rubric items, users can easily check the feedback for each comment given to each rubric item. We propose the following  solution&lt;br /&gt;
## Each comment on hover shows the user's respective comment on the specific rubric review question so that the feedback is easily accessible.&lt;br /&gt;
### On click of the get review feedback button, we loop through the dynamically created review question form and store the mapping of questions and the reviewer's corresponding comments which on hovered are displayed as a popup.  &lt;br /&gt;
[[File:Proposedsolution.jpeg|1000px|thumb| center | LOFI Design of Proposed Solution]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# Another issue with the current implementation is that code is quite repetitive for making different API calls  (Sentiment, Suggestion, etc). We propose to store the API link in the config file and refer to the variable in the getReviewFeedback()&lt;br /&gt;
# We also plan to remove a global variable response_general, which is being used to store the response of API calls. We will refactor the makeRequest function to directly return the response which can be used in various places. This will resolve implicit coupling issues in the code and make it more easily extendable. &lt;br /&gt;
# The previous implementation has hardcoded configuration information like the help text button. We propose to save this information in config files which can be easily modified and will remove unnecessary information from the code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Implementation == &lt;br /&gt;
&lt;br /&gt;
=== UI Changes ===&lt;br /&gt;
We refactored the UI of the generated table showing the problem, suggestion, and sentiment of the review comment, by adding a tooltip for prompting the Question and its corresponding review comment in the table itself. &lt;br /&gt;
==== UI screenshots ====&lt;br /&gt;
[[File:Review_table.PNG|500px|thumb|center]]&lt;br /&gt;
[[File:Retry.PNG|400px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
==== Javascript implementation ====&lt;br /&gt;
#Description - We have added a tooltip in front of every comment number, which on hovering shows the question for which the feedback is given as well as the review comment given for that question.&lt;br /&gt;
#File changed - app/views/response/_response_analysis.html.erb&lt;br /&gt;
[[File:Ui.PNG|400px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Bug Fixes (Dynamic Feedback) ===&lt;br /&gt;
Previously, the implementation took into account the text area field because of which we need to save the form before getting the feedback. We changed the implementation so that users can type in a review comment and dynamically get feedback on it before saving.&lt;br /&gt;
[[File:Bug-fix-1.PNG|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
==== Javascript implementation ====&lt;br /&gt;
#Description - The global variable response_general was used to store the response, which was not needed as the Promise will return the response and we threw an error in case of rejection, which is handled makeRequest method&lt;br /&gt;
#File changed - app/views/response/_response_analysis.html.erb&lt;br /&gt;
[[File:Api refact.PNG|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
=== Refactoring (removing code duplication) ===&lt;br /&gt;
In the previous implementation, code was duplicated for handling different scenarios of fetching the review comment. The code was mostly the same with some conditions. We abstracted the functionality into a method that can be used at multiple places instead of duplicating the code. &lt;br /&gt;
&lt;br /&gt;
Also, the previous implementation was counting the number of rubric questions by parsing the DOM Structure, we refactored that logic as well.&lt;br /&gt;
&lt;br /&gt;
==== Javascript implementation ====&lt;br /&gt;
#Description  - The internal function create_comment_object is used for generating comment object according to question and class_name of DOM. This comment JSON is then used to pass to the API for fetching the predictions. &lt;br /&gt;
#File changed - app/views/response/_response_analysis.html.erb&lt;br /&gt;
[[File:Create_comment_object.PNG|1200px|thumb|center]]&lt;br /&gt;
[[File:While_loo.PNG|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Error handling improvements ===&lt;br /&gt;
We introduced error handling by changing the “Loading…” text to “Request failed. Please try again.” if the API for generating feedback fails. Previously, this  case was not handled&lt;br /&gt;
==== Javascript implementation ====&lt;br /&gt;
#Description - We have added try-catch blocks while making API call, and if the promise is rejected we catch the error and change the “Loading…” text at the bottom to “Request failed. Please try again.”&lt;br /&gt;
#Files changed - app/views/response/_response_analysis.html.erb&lt;br /&gt;
[[File:Request_error.PNG|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
[[File:Request error 2.PNG|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
=== Refactoring (Removing Hardcoded Values) ===&lt;br /&gt;
In the previous implementation the api urls for each analysis and the tool tip description for the analysis were hardcoded into the files. We moved theses values out into the config file below and the values for each of the hardcoded analysis values can be accessed anywhere in the _response_analysis.html.erb file which handles the processing for the analysis. This allows any hardcoded analysis value to be found in one location along with making it easier to append other hardcoded values to each analysis. &lt;br /&gt;
&lt;br /&gt;
[[File:Config File.PNG|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
=== Refactoring (removing duplicate api values) ===&lt;br /&gt;
In the previous implementation each analysis in the _response_analysis.html.erb file had its own block of code for getting the response message, processing values and displaying it to the table. The issue was that many analysis had duplicate blocks of code for getting response message, processing data, and displaying data with only a few analysis requiring different getting, processing, and displaying methods. In the new implementation a for loop would loop through each analysis and would run a default block of code for getting, processing, and displaying data unless the analysis had its own unique getting, processing, and displaying methods where an if statement in the for loop would run the blocks of code for the given method.&lt;br /&gt;
&lt;br /&gt;
[[File:ResponseOld.PNG|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
[[File:ResponseNew.PNG|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
===Files edited === &lt;br /&gt;
# review_metrics.yml&lt;br /&gt;
# response.html.erb&lt;br /&gt;
# _response_analysis.html.erb&lt;br /&gt;
# response_controller.rb&lt;br /&gt;
# response_controller_spec.rb&lt;br /&gt;
&lt;br /&gt;
== Sample API Input/Output ==&lt;br /&gt;
* Input Text is passed in the following JSON format&lt;br /&gt;
  { &lt;br /&gt;
      &amp;quot;text&amp;quot;: &amp;quot;This is an excellent project. Keep up the great work&amp;quot; &lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
* Output is returned in the following JSON format:&lt;br /&gt;
  {          &lt;br /&gt;
      &amp;quot;sentiment_score&amp;quot;: 0.9,&lt;br /&gt;
      &amp;quot;sentiment_tone&amp;quot;: &amp;quot;Positive&amp;quot;,&lt;br /&gt;
      &amp;quot;suggestions&amp;quot;: &amp;quot;absent&amp;quot;,&lt;br /&gt;
      &amp;quot;suggestions_chances&amp;quot;: 10.17,&lt;br /&gt;
      &amp;quot;text&amp;quot;: &amp;quot;This is an excellent project. Keep up the great work&amp;quot;,&lt;br /&gt;
      &amp;quot;total_volume&amp;quot;: 10,&lt;br /&gt;
      &amp;quot;volume_without_stopwords&amp;quot;: 6&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
== Testing Plan ==&lt;br /&gt;
&lt;br /&gt;
===Automated Test===&lt;br /&gt;
&lt;br /&gt;
====spec/controllers/response_controller_spec.rb====&lt;br /&gt;
&lt;br /&gt;
Added a test that confirms the correct API URLS are being pulled from the config file.&lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2021-11-29 at 10.43.16 AM.png|600px]]&lt;br /&gt;
&lt;br /&gt;
===Manual Test===&lt;br /&gt;
&lt;br /&gt;
#The functionality was written on the client side in javascript solely in _response_analysis.html.erb&lt;br /&gt;
#To test this view, any type of review must be accessible as a student.&lt;br /&gt;
#There is a button at the bottom of the review called 'Get Review Feedback'.&lt;br /&gt;
#When pressing button, API calls are issued and the metrics will show up within the table (a sample of which is shown in above screenshot).&lt;br /&gt;
#As API calls will take time, 'Loading..' text will appear until the API calls are complete&lt;br /&gt;
#All the review feedback for the comments will be displayed in a colorful table.&lt;br /&gt;
#In the feedback table, upon hovering on the comment number, we will be able to see the rubric item and review comments associated with that particular rubric item&lt;br /&gt;
&lt;br /&gt;
== Important Links ==&lt;br /&gt;
# https://docs.google.com/document/d/1slx4HPIbgTH-psIKMSCF-HDF9brxf-FuYhzVT9ZiIrM/edit#heading=h.fxfungdw1d5r&lt;br /&gt;
# https://github.com/expertiza/expertiza/pull/2159&lt;br /&gt;
# https://youtu.be/oN7qCNTFBE8&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
&lt;br /&gt;
* Prashan Sengo (psengo)&lt;br /&gt;
&lt;br /&gt;
* Griffin Brookshire (glbrook2)&lt;br /&gt;
&lt;br /&gt;
* Divyang Doshi (ddoshi2)&lt;br /&gt;
&lt;br /&gt;
* Srujan Ponnur (sponnur)&lt;/div&gt;</summary>
		<author><name>Sponnur</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Ui.PNG&amp;diff=142259</id>
		<title>File:Ui.PNG</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Ui.PNG&amp;diff=142259"/>
		<updated>2021-11-30T03:12:41Z</updated>

		<summary type="html">&lt;p&gt;Sponnur: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Sponnur</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2150._Integrate_suggestion_detection_algorithm&amp;diff=142258</id>
		<title>CSC/ECE 517 Fall 2021 - E2150. Integrate suggestion detection algorithm</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2150._Integrate_suggestion_detection_algorithm&amp;diff=142258"/>
		<updated>2021-11-30T03:10:33Z</updated>

		<summary type="html">&lt;p&gt;Sponnur: /* files edited */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Problem Definition ==&lt;br /&gt;
Peer-review systems like Expertiza utilize a lot of students’ input to determine each other’s performance. At the same time, students learn from the reviews they receive to improve their own performance. In order to make this happen, it would be good to have everyone give quality reviews instead of generic ones. Currently, Expertiza has a few classifiers that can detect useful features of review comments, such as whether they contain suggestions. The suggestion-detection algorithm has been coded as a web service, and other detection algorithms, such as problem detection and sentiment analysis, also exist as newer web services. We need to make the UI more intuitive by allowing users to view the feedback of specific review comments and the code needs to be refactored to remove redundancy to follow the DRY principle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Previous Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The previous implementation added the following features:&lt;br /&gt;
# Setup a config file 'review_metric.yml' where the instructor can select what review metric to display for the current assignments&lt;br /&gt;
# API calls (sentiment, problem, suggestion) are made and a table is rendered below, displaying the feedback of the review comments.&lt;br /&gt;
# The total time taken by the API calls was also displayed.&lt;br /&gt;
&lt;br /&gt;
=== UI Screenshots ===&lt;br /&gt;
The following image shows how a reviewer interacts with the system to get feedback on the review comments.&lt;br /&gt;
[[File:Steps_metric.png|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
=== Control Flow ===&lt;br /&gt;
&lt;br /&gt;
[[File:Review_metric.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Issues with Previous Work ==&lt;br /&gt;
&lt;br /&gt;
With the previous implementation of this project, students can write comments and request feedback for the comments. There are certain issues with the previous implementation that needs to be addressed.&lt;br /&gt;
&lt;br /&gt;
# The criteria are numbered in the view, and those numbers do not correspond to anything on the rubric form.  So if the rubric is long, it would be quite difficult for the reviewer to figure out what automated feedback referred to which comment.&lt;br /&gt;
# There are too many hardcoded values present in the previously implemented code. We plan to move these hardcoded values to a configuration file and access them when needed.&lt;br /&gt;
# Currently there are many repetitive blocks of code. For Ex.; in _response_analysis.html for the getReviewFeedback(), the API call for each type of tag (sentiment, suggestion, etc) is being repeated. Only the API link differs there.&lt;br /&gt;
#  The previous implementation takes the text area field in the view to fetch the review comment, but it’s not updated dynamically when the user types a comment. The user needs to save the form then go back to edit view and then request feedback.&lt;br /&gt;
&lt;br /&gt;
== Proposed Solution ==&lt;br /&gt;
[[File:PreviousImplementation.jpeg|1000px|thumb| center | previous Implementation]]&lt;br /&gt;
# We need to improve the UI so that if there are many rubric items, users can easily check the feedback for each comment given to each rubric item. We propose the following  solution&lt;br /&gt;
## Each comment on hover shows the user's respective comment on the specific rubric review question so that the feedback is easily accessible.&lt;br /&gt;
### On click of the get review feedback button, we loop through the dynamically created review question form and store the mapping of questions and the reviewer's corresponding comments which on hovered are displayed as a popup.  &lt;br /&gt;
[[File:Proposedsolution.jpeg|1000px|thumb| center | LOFI Design of Proposed Solution]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# Another issue with the current implementation is that code is quite repetitive for making different API calls  (Sentiment, Suggestion, etc). We propose to store the API link in the config file and refer to the variable in the getReviewFeedback()&lt;br /&gt;
# We also plan to remove a global variable response_general, which is being used to store the response of API calls. We will refactor the makeRequest function to directly return the response which can be used in various places. This will resolve implicit coupling issues in the code and make it more easily extendable. &lt;br /&gt;
# The previous implementation has hardcoded configuration information like the help text button. We propose to save this information in config files which can be easily modified and will remove unnecessary information from the code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Implementation == &lt;br /&gt;
&lt;br /&gt;
=== UI Changes ===&lt;br /&gt;
We refactored the UI of the generated table showing the problem, suggestion, and sentiment of the review comment, by adding a tooltip for prompting the Question and its corresponding review comment in the table itself. &lt;br /&gt;
==== UI screenshots ====&lt;br /&gt;
[[File:Review_table.PNG|500px|thumb|center]]&lt;br /&gt;
[[File:Retry.PNG|400px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
==== Javascript implementation ====&lt;br /&gt;
#Description - We have added a tooltip in front of every comment number, which on hovering shows the question for which the feedback is given as well as the review comment given for that question.&lt;br /&gt;
#File changed - app/views/response/_response_analysis.html.erb&lt;br /&gt;
&lt;br /&gt;
=== Bug Fixes (Dynamic Feedback) ===&lt;br /&gt;
Previously, the implementation took into account the text area field because of which we need to save the form before getting the feedback. We changed the implementation so that users can type in a review comment and dynamically get feedback on it before saving.&lt;br /&gt;
[[File:Bug-fix-1.PNG|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
==== Javascript implementation ====&lt;br /&gt;
#Description - The global variable response_general was used to store the response, which was not needed as the Promise will return the response and we threw an error in case of rejection, which is handled makeRequest method&lt;br /&gt;
#File changed - app/views/response/_response_analysis.html.erb&lt;br /&gt;
[[File:Api refact.PNG|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
=== Refactoring (removing code duplication) ===&lt;br /&gt;
In the previous implementation, code was duplicated for handling different scenarios of fetching the review comment. The code was mostly the same with some conditions. We abstracted the functionality into a method that can be used at multiple places instead of duplicating the code. &lt;br /&gt;
&lt;br /&gt;
Also, the previous implementation was counting the number of rubric questions by parsing the DOM Structure, we refactored that logic as well.&lt;br /&gt;
&lt;br /&gt;
==== Javascript implementation ====&lt;br /&gt;
#Description  - The internal function create_comment_object is used for generating comment object according to question and class_name of DOM. This comment JSON is then used to pass to the API for fetching the predictions. &lt;br /&gt;
#File changed - app/views/response/_response_analysis.html.erb&lt;br /&gt;
[[File:Create_comment_object.PNG|1200px|thumb|center]]&lt;br /&gt;
[[File:While_loo.PNG|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Error handling improvements ===&lt;br /&gt;
We introduced error handling by changing the “Loading…” text to “Request failed. Please try again.” if the API for generating feedback fails. Previously, this  case was not handled&lt;br /&gt;
==== Javascript implementation ====&lt;br /&gt;
#Description - We have added try-catch blocks while making API call, and if the promise is rejected we catch the error and change the “Loading…” text at the bottom to “Request failed. Please try again.”&lt;br /&gt;
#Files changed - app/views/response/_response_analysis.html.erb&lt;br /&gt;
[[File:Request_error.PNG|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
[[File:Request error 2.PNG|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
=== Refactoring (Removing Hardcoded Values) ===&lt;br /&gt;
In the previous implementation the api urls for each analysis and the tool tip description for the analysis were hardcoded into the files. We moved theses values out into the config file below and the values for each of the hardcoded analysis values can be accessed anywhere in the _response_analysis.html.erb file which handles the processing for the analysis. This allows any hardcoded analysis value to be found in one location along with making it easier to append other hardcoded values to each analysis. &lt;br /&gt;
&lt;br /&gt;
[[File:Config File.PNG|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
=== Refactoring (removing duplicate api values) ===&lt;br /&gt;
In the previous implementation each analysis in the _response_analysis.html.erb file had its own block of code for getting the response message, processing values and displaying it to the table. The issue was that many analysis had duplicate blocks of code for getting response message, processing data, and displaying data with only a few analysis requiring different getting, processing, and displaying methods. In the new implementation a for loop would loop through each analysis and would run a default block of code for getting, processing, and displaying data unless the analysis had its own unique getting, processing, and displaying methods where an if statement in the for loop would run the blocks of code for the given method.&lt;br /&gt;
&lt;br /&gt;
[[File:ResponseOld.PNG|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
[[File:ResponseNew.PNG|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
===Files edited === &lt;br /&gt;
# review_metrics.yml&lt;br /&gt;
# response.html.erb&lt;br /&gt;
# _response_analysis.html.erb&lt;br /&gt;
# response_controller.rb&lt;br /&gt;
# response_controller_spec.rb&lt;br /&gt;
&lt;br /&gt;
== Sample API Input/Output ==&lt;br /&gt;
* Input Text is passed in the following JSON format&lt;br /&gt;
  { &lt;br /&gt;
      &amp;quot;text&amp;quot;: &amp;quot;This is an excellent project. Keep up the great work&amp;quot; &lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
* Output is returned in the following JSON format:&lt;br /&gt;
  {          &lt;br /&gt;
      &amp;quot;sentiment_score&amp;quot;: 0.9,&lt;br /&gt;
      &amp;quot;sentiment_tone&amp;quot;: &amp;quot;Positive&amp;quot;,&lt;br /&gt;
      &amp;quot;suggestions&amp;quot;: &amp;quot;absent&amp;quot;,&lt;br /&gt;
      &amp;quot;suggestions_chances&amp;quot;: 10.17,&lt;br /&gt;
      &amp;quot;text&amp;quot;: &amp;quot;This is an excellent project. Keep up the great work&amp;quot;,&lt;br /&gt;
      &amp;quot;total_volume&amp;quot;: 10,&lt;br /&gt;
      &amp;quot;volume_without_stopwords&amp;quot;: 6&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
== Testing Plan ==&lt;br /&gt;
&lt;br /&gt;
===Automated Test===&lt;br /&gt;
&lt;br /&gt;
====spec/controllers/response_controller_spec.rb====&lt;br /&gt;
&lt;br /&gt;
Added a test that confirms the correct API URLS are being pulled from the config file.&lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2021-11-29 at 10.43.16 AM.png|600px]]&lt;br /&gt;
&lt;br /&gt;
===Manual Test===&lt;br /&gt;
&lt;br /&gt;
#The functionality was written on the client side in javascript solely in _response_analysis.html.erb&lt;br /&gt;
#To test this view, any type of review must be accessible as a student.&lt;br /&gt;
#There is a button at the bottom of the review called 'Get Review Feedback'.&lt;br /&gt;
#When pressing button, API calls are issued and the metrics will show up within the table (a sample of which is shown in above screenshot).&lt;br /&gt;
#As API calls will take time, 'Loading..' text will appear until the API calls are complete&lt;br /&gt;
#All the review feedback for the comments will be displayed in a colorful table.&lt;br /&gt;
#In the feedback table, upon hovering on the comment number, we will be able to see the rubric item and review comments associated with that particular rubric item&lt;br /&gt;
&lt;br /&gt;
== Important Links ==&lt;br /&gt;
# https://docs.google.com/document/d/1slx4HPIbgTH-psIKMSCF-HDF9brxf-FuYhzVT9ZiIrM/edit#heading=h.fxfungdw1d5r&lt;br /&gt;
# https://github.com/expertiza/expertiza/pull/2159&lt;br /&gt;
# https://youtu.be/oN7qCNTFBE8&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
&lt;br /&gt;
* Prashan Sengo (psengo)&lt;br /&gt;
&lt;br /&gt;
* Griffin Brookshire (glbrook2)&lt;br /&gt;
&lt;br /&gt;
* Divyang Doshi (ddoshi2)&lt;br /&gt;
&lt;br /&gt;
* Srujan Ponnur (sponnur)&lt;/div&gt;</summary>
		<author><name>Sponnur</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2150._Integrate_suggestion_detection_algorithm&amp;diff=142257</id>
		<title>CSC/ECE 517 Fall 2021 - E2150. Integrate suggestion detection algorithm</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2150._Integrate_suggestion_detection_algorithm&amp;diff=142257"/>
		<updated>2021-11-30T03:10:18Z</updated>

		<summary type="html">&lt;p&gt;Sponnur: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Problem Definition ==&lt;br /&gt;
Peer-review systems like Expertiza utilize a lot of students’ input to determine each other’s performance. At the same time, students learn from the reviews they receive to improve their own performance. In order to make this happen, it would be good to have everyone give quality reviews instead of generic ones. Currently, Expertiza has a few classifiers that can detect useful features of review comments, such as whether they contain suggestions. The suggestion-detection algorithm has been coded as a web service, and other detection algorithms, such as problem detection and sentiment analysis, also exist as newer web services. We need to make the UI more intuitive by allowing users to view the feedback of specific review comments and the code needs to be refactored to remove redundancy to follow the DRY principle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Previous Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The previous implementation added the following features:&lt;br /&gt;
# Setup a config file 'review_metric.yml' where the instructor can select what review metric to display for the current assignments&lt;br /&gt;
# API calls (sentiment, problem, suggestion) are made and a table is rendered below, displaying the feedback of the review comments.&lt;br /&gt;
# The total time taken by the API calls was also displayed.&lt;br /&gt;
&lt;br /&gt;
=== UI Screenshots ===&lt;br /&gt;
The following image shows how a reviewer interacts with the system to get feedback on the review comments.&lt;br /&gt;
[[File:Steps_metric.png|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
=== Control Flow ===&lt;br /&gt;
&lt;br /&gt;
[[File:Review_metric.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Issues with Previous Work ==&lt;br /&gt;
&lt;br /&gt;
With the previous implementation of this project, students can write comments and request feedback for the comments. There are certain issues with the previous implementation that needs to be addressed.&lt;br /&gt;
&lt;br /&gt;
# The criteria are numbered in the view, and those numbers do not correspond to anything on the rubric form.  So if the rubric is long, it would be quite difficult for the reviewer to figure out what automated feedback referred to which comment.&lt;br /&gt;
# There are too many hardcoded values present in the previously implemented code. We plan to move these hardcoded values to a configuration file and access them when needed.&lt;br /&gt;
# Currently there are many repetitive blocks of code. For Ex.; in _response_analysis.html for the getReviewFeedback(), the API call for each type of tag (sentiment, suggestion, etc) is being repeated. Only the API link differs there.&lt;br /&gt;
#  The previous implementation takes the text area field in the view to fetch the review comment, but it’s not updated dynamically when the user types a comment. The user needs to save the form then go back to edit view and then request feedback.&lt;br /&gt;
&lt;br /&gt;
== Proposed Solution ==&lt;br /&gt;
[[File:PreviousImplementation.jpeg|1000px|thumb| center | previous Implementation]]&lt;br /&gt;
# We need to improve the UI so that if there are many rubric items, users can easily check the feedback for each comment given to each rubric item. We propose the following  solution&lt;br /&gt;
## Each comment on hover shows the user's respective comment on the specific rubric review question so that the feedback is easily accessible.&lt;br /&gt;
### On click of the get review feedback button, we loop through the dynamically created review question form and store the mapping of questions and the reviewer's corresponding comments which on hovered are displayed as a popup.  &lt;br /&gt;
[[File:Proposedsolution.jpeg|1000px|thumb| center | LOFI Design of Proposed Solution]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# Another issue with the current implementation is that code is quite repetitive for making different API calls  (Sentiment, Suggestion, etc). We propose to store the API link in the config file and refer to the variable in the getReviewFeedback()&lt;br /&gt;
# We also plan to remove a global variable response_general, which is being used to store the response of API calls. We will refactor the makeRequest function to directly return the response which can be used in various places. This will resolve implicit coupling issues in the code and make it more easily extendable. &lt;br /&gt;
# The previous implementation has hardcoded configuration information like the help text button. We propose to save this information in config files which can be easily modified and will remove unnecessary information from the code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Implementation == &lt;br /&gt;
&lt;br /&gt;
=== UI Changes ===&lt;br /&gt;
We refactored the UI of the generated table showing the problem, suggestion, and sentiment of the review comment, by adding a tooltip for prompting the Question and its corresponding review comment in the table itself. &lt;br /&gt;
==== UI screenshots ====&lt;br /&gt;
[[File:Review_table.PNG|500px|thumb|center]]&lt;br /&gt;
[[File:Retry.PNG|400px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
==== Javascript implementation ====&lt;br /&gt;
#Description - We have added a tooltip in front of every comment number, which on hovering shows the question for which the feedback is given as well as the review comment given for that question.&lt;br /&gt;
#File changed - app/views/response/_response_analysis.html.erb&lt;br /&gt;
&lt;br /&gt;
=== Bug Fixes (Dynamic Feedback) ===&lt;br /&gt;
Previously, the implementation took into account the text area field because of which we need to save the form before getting the feedback. We changed the implementation so that users can type in a review comment and dynamically get feedback on it before saving.&lt;br /&gt;
[[File:Bug-fix-1.PNG|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
==== Javascript implementation ====&lt;br /&gt;
#Description - The global variable response_general was used to store the response, which was not needed as the Promise will return the response and we threw an error in case of rejection, which is handled makeRequest method&lt;br /&gt;
#File changed - app/views/response/_response_analysis.html.erb&lt;br /&gt;
[[File:Api refact.PNG|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
=== Refactoring (removing code duplication) ===&lt;br /&gt;
In the previous implementation, code was duplicated for handling different scenarios of fetching the review comment. The code was mostly the same with some conditions. We abstracted the functionality into a method that can be used at multiple places instead of duplicating the code. &lt;br /&gt;
&lt;br /&gt;
Also, the previous implementation was counting the number of rubric questions by parsing the DOM Structure, we refactored that logic as well.&lt;br /&gt;
&lt;br /&gt;
==== Javascript implementation ====&lt;br /&gt;
#Description  - The internal function create_comment_object is used for generating comment object according to question and class_name of DOM. This comment JSON is then used to pass to the API for fetching the predictions. &lt;br /&gt;
#File changed - app/views/response/_response_analysis.html.erb&lt;br /&gt;
[[File:Create_comment_object.PNG|1200px|thumb|center]]&lt;br /&gt;
[[File:While_loo.PNG|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Error handling improvements ===&lt;br /&gt;
We introduced error handling by changing the “Loading…” text to “Request failed. Please try again.” if the API for generating feedback fails. Previously, this  case was not handled&lt;br /&gt;
==== Javascript implementation ====&lt;br /&gt;
#Description - We have added try-catch blocks while making API call, and if the promise is rejected we catch the error and change the “Loading…” text at the bottom to “Request failed. Please try again.”&lt;br /&gt;
#Files changed - app/views/response/_response_analysis.html.erb&lt;br /&gt;
[[File:Request_error.PNG|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
[[File:Request error 2.PNG|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
=== Refactoring (Removing Hardcoded Values) ===&lt;br /&gt;
In the previous implementation the api urls for each analysis and the tool tip description for the analysis were hardcoded into the files. We moved theses values out into the config file below and the values for each of the hardcoded analysis values can be accessed anywhere in the _response_analysis.html.erb file which handles the processing for the analysis. This allows any hardcoded analysis value to be found in one location along with making it easier to append other hardcoded values to each analysis. &lt;br /&gt;
&lt;br /&gt;
[[File:Config File.PNG|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
=== Refactoring (removing duplicate api values) ===&lt;br /&gt;
In the previous implementation each analysis in the _response_analysis.html.erb file had its own block of code for getting the response message, processing values and displaying it to the table. The issue was that many analysis had duplicate blocks of code for getting response message, processing data, and displaying data with only a few analysis requiring different getting, processing, and displaying methods. In the new implementation a for loop would loop through each analysis and would run a default block of code for getting, processing, and displaying data unless the analysis had its own unique getting, processing, and displaying methods where an if statement in the for loop would run the blocks of code for the given method.&lt;br /&gt;
&lt;br /&gt;
[[File:ResponseOld.PNG|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
[[File:ResponseNew.PNG|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
===files edited === &lt;br /&gt;
# review_metrics.yml&lt;br /&gt;
# response.html.erb&lt;br /&gt;
# _response_analysis.html.erb&lt;br /&gt;
# response_controller.rb&lt;br /&gt;
# response_controller_spec.rb&lt;br /&gt;
&lt;br /&gt;
== Sample API Input/Output ==&lt;br /&gt;
* Input Text is passed in the following JSON format&lt;br /&gt;
  { &lt;br /&gt;
      &amp;quot;text&amp;quot;: &amp;quot;This is an excellent project. Keep up the great work&amp;quot; &lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
* Output is returned in the following JSON format:&lt;br /&gt;
  {          &lt;br /&gt;
      &amp;quot;sentiment_score&amp;quot;: 0.9,&lt;br /&gt;
      &amp;quot;sentiment_tone&amp;quot;: &amp;quot;Positive&amp;quot;,&lt;br /&gt;
      &amp;quot;suggestions&amp;quot;: &amp;quot;absent&amp;quot;,&lt;br /&gt;
      &amp;quot;suggestions_chances&amp;quot;: 10.17,&lt;br /&gt;
      &amp;quot;text&amp;quot;: &amp;quot;This is an excellent project. Keep up the great work&amp;quot;,&lt;br /&gt;
      &amp;quot;total_volume&amp;quot;: 10,&lt;br /&gt;
      &amp;quot;volume_without_stopwords&amp;quot;: 6&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
== Testing Plan ==&lt;br /&gt;
&lt;br /&gt;
===Automated Test===&lt;br /&gt;
&lt;br /&gt;
====spec/controllers/response_controller_spec.rb====&lt;br /&gt;
&lt;br /&gt;
Added a test that confirms the correct API URLS are being pulled from the config file.&lt;br /&gt;
&lt;br /&gt;
[[File:Screen Shot 2021-11-29 at 10.43.16 AM.png|600px]]&lt;br /&gt;
&lt;br /&gt;
===Manual Test===&lt;br /&gt;
&lt;br /&gt;
#The functionality was written on the client side in javascript solely in _response_analysis.html.erb&lt;br /&gt;
#To test this view, any type of review must be accessible as a student.&lt;br /&gt;
#There is a button at the bottom of the review called 'Get Review Feedback'.&lt;br /&gt;
#When pressing button, API calls are issued and the metrics will show up within the table (a sample of which is shown in above screenshot).&lt;br /&gt;
#As API calls will take time, 'Loading..' text will appear until the API calls are complete&lt;br /&gt;
#All the review feedback for the comments will be displayed in a colorful table.&lt;br /&gt;
#In the feedback table, upon hovering on the comment number, we will be able to see the rubric item and review comments associated with that particular rubric item&lt;br /&gt;
&lt;br /&gt;
== Important Links ==&lt;br /&gt;
# https://docs.google.com/document/d/1slx4HPIbgTH-psIKMSCF-HDF9brxf-FuYhzVT9ZiIrM/edit#heading=h.fxfungdw1d5r&lt;br /&gt;
# https://github.com/expertiza/expertiza/pull/2159&lt;br /&gt;
# https://youtu.be/oN7qCNTFBE8&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
&lt;br /&gt;
* Prashan Sengo (psengo)&lt;br /&gt;
&lt;br /&gt;
* Griffin Brookshire (glbrook2)&lt;br /&gt;
&lt;br /&gt;
* Divyang Doshi (ddoshi2)&lt;br /&gt;
&lt;br /&gt;
* Srujan Ponnur (sponnur)&lt;/div&gt;</summary>
		<author><name>Sponnur</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2150._Integrate_suggestion_detection_algorithm&amp;diff=141806</id>
		<title>CSC/ECE 517 Fall 2021 - E2150. Integrate suggestion detection algorithm</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2150._Integrate_suggestion_detection_algorithm&amp;diff=141806"/>
		<updated>2021-11-28T22:36:56Z</updated>

		<summary type="html">&lt;p&gt;Sponnur: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Problem Definition ==&lt;br /&gt;
Peer-review systems like Expertiza utilize a lot of students’ input to determine each other’s performance. At the same time, students learn from the reviews they receive to improve their own performance. In order to make this happen, it would be good to have everyone give quality reviews instead of generic ones. Currently, Expertiza has a few classifiers that can detect useful features of review comments, such as whether they contain suggestions. The suggestion-detection algorithm has been coded as a web service, and other detection algorithms, such as problem detection and sentiment analysis, also exist as newer web services. We need to make the UI more intuitive by allowing users to view the feedback of specific review comments and the code needs to be refactored to remove redundancy to follow the DRY principle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Previous Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The previous implementation added the following features:&lt;br /&gt;
# Setup a config file 'review_metric.yml' where the instructor can select what review metric to display for the current assignments&lt;br /&gt;
# API calls (sentiment, problem, suggestion) are made and a table is rendered below, displaying the feedback of the review comments.&lt;br /&gt;
# The total time taken by the API calls was also displayed.&lt;br /&gt;
&lt;br /&gt;
=== UI Screenshots ===&lt;br /&gt;
The following image shows how a reviewer interacts with the system to get feedback on the review comments.&lt;br /&gt;
[[File:Steps_metric.png|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
=== Control Flow ===&lt;br /&gt;
&lt;br /&gt;
[[File:Review_metric.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Issues with Previous Work ==&lt;br /&gt;
&lt;br /&gt;
With the previous implementation of this project, students can write comments and request feedback for the comments. There are certain issues with the previous implementation that needs to be addressed.&lt;br /&gt;
&lt;br /&gt;
# The criteria are numbered in the view, and those numbers do not correspond to anything on the rubric form.  So if the rubric is long, it would be quite difficult for the reviewer to figure out what automated feedback referred to which comment.&lt;br /&gt;
# Too much specific information on metrics is encoded into the text.  While some of the info is in configuration files, the help text for the info buttons is in the code.&lt;br /&gt;
# Currently there are many repetitive blocks of code. For Ex.; in _response_analysis.html for the getReviewFeedback(), the API call for each type of tag (sentiment, suggestion, etc) is being repeated. Only the API link differs there.&lt;br /&gt;
#  The previous implementation takes the text area field in the view to fetch the review comment, but it’s not updated dynamically when the user types a comment. The user needs to save the form then go back to edit view and then request feedback.&lt;br /&gt;
&lt;br /&gt;
== Proposed Solution ==&lt;br /&gt;
[[File:PreviousImplementation.jpeg|1000px|thumb| center | previous Implementation]]&lt;br /&gt;
# We need to improve the UI so that if there are many rubric items, users can easily check the feedback for each comment given to each rubric item. We propose the following  solution&lt;br /&gt;
## Each comment on hover shows the user's respective comment on the specific rubric review question so that the feedback is easily accessible.&lt;br /&gt;
### On click of the get review feedback button, we loop through the dynamically created review question form and store the mapping of questions and the reviewer's corresponding comments which on hovered are displayed as a popup.  &lt;br /&gt;
[[File:Proposedsolution.jpeg|1000px|thumb| center | LOFI Design of Proposed Solution]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# Another issue with the current implementation is that code is quite repetitive for making different API calls  (Sentiment, Suggestion, etc). We propose to store the API link in the config file and refer to the variable in the getReviewFeedback()&lt;br /&gt;
# We also plan to remove a global variable response_general, which is being used to store the response of API calls. We will refactor the makeRequest function to directly return the response which can be used in various places. This will resolve implicit coupling issues in the code and make it more easily extendable. &lt;br /&gt;
# The previous implementation has hardcoded configuration information like the help text button. We propose to save this information in config files which can be easily modified and will remove unnecessary information from the code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Implementation == &lt;br /&gt;
&lt;br /&gt;
=== UI Changes ===&lt;br /&gt;
We refactored the UI of the generated table showing the problem, suggestion, and sentiment of the review comment, by adding a tooltip for prompting the Question and its corresponding review comment in the table itself. &lt;br /&gt;
==== UI screenshots ====&lt;br /&gt;
[[File:Review_table.PNG|500px|thumb|center]]&lt;br /&gt;
[[File:Retry.PNG|400px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
==== Javascript implementation ====&lt;br /&gt;
#Description - We have added a tooltip in front of every comment number, which on hovering shows the question for which the feedback is given as well as the review comment given for that question.&lt;br /&gt;
#File changed - app/views/response/_response_analysis.html.erb&lt;br /&gt;
&lt;br /&gt;
=== Bug Fixes (Dynamic Feedback) ===&lt;br /&gt;
Previously, the implementation took into account the text area field because of which we need to save the form before getting the feedback. We changed the implementation so that users can type in a review comment and dynamically get feedback on it before saving.&lt;br /&gt;
[[File:Bug-fix-1.PNG|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
==== Javascript implementation ====&lt;br /&gt;
#Description - The global variable response_general was used to store the response, which was not needed as the Promise will return the response and we threw an error in case of rejection, which is handled makeRequest method&lt;br /&gt;
#File changed - app/views/response/_response_analysis.html.erb&lt;br /&gt;
[[File:Api refact.PNG|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
=== Refactoring (removing code duplication) ===&lt;br /&gt;
In the previous implementation, code was duplicated for handling different scenarios of fetching the review comment. The code was mostly the same with some conditions. We abstracted the functionality into a method that can be used at multiple places instead of duplicating the code. &lt;br /&gt;
&lt;br /&gt;
Also, the previous implementation was counting the number of rubric questions by parsing the DOM Structure, we refactored that logic as well.&lt;br /&gt;
&lt;br /&gt;
==== Javascript implementation ====&lt;br /&gt;
#Description  - The internal function create_comment_object is used for generating comment object according to question and class_name of DOM. This comment JSON is then used to pass to the API for fetching the predictions. &lt;br /&gt;
#File changed - app/views/response/_response_analysis.html.erb&lt;br /&gt;
[[File:Create_comment_object.PNG|1200px|thumb|center]]&lt;br /&gt;
[[File:While_loo.PNG|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Error handling improvements ===&lt;br /&gt;
We introduced error handling by changing the “Loading…” text to “Request failed. Please try again.” if the API for generating feedback fails. Previously, this  case was not handled&lt;br /&gt;
==== Javascript implementation ====&lt;br /&gt;
#Description - We have added try-catch blocks while making API call, and if the promise is rejected we catch the error and change the “Loading…” text at the bottom to “Request failed. Please try again.”&lt;br /&gt;
#Files changed - app/views/response/_response_analysis.html.erb&lt;br /&gt;
[[File:Request_error.PNG|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
[[File:Request error 2.PNG|1200px|thumb|center]]&lt;br /&gt;
=== Possible files to be edited === &lt;br /&gt;
# review_metrics.yml&lt;br /&gt;
# response.html.erb&lt;br /&gt;
# _response_analysis.html.erb&lt;br /&gt;
# response_controller.rb&lt;br /&gt;
# response_controller_spec.rb&lt;br /&gt;
&lt;br /&gt;
== Sample API Input/Output ==&lt;br /&gt;
* Input Text is passed in the following JSON format&lt;br /&gt;
  { &lt;br /&gt;
      &amp;quot;text&amp;quot;: &amp;quot;This is an excellent project. Keep up the great work&amp;quot; &lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
* Output is returned in the following JSON format:&lt;br /&gt;
  {          &lt;br /&gt;
      &amp;quot;sentiment_score&amp;quot;: 0.9,&lt;br /&gt;
      &amp;quot;sentiment_tone&amp;quot;: &amp;quot;Positive&amp;quot;,&lt;br /&gt;
      &amp;quot;suggestions&amp;quot;: &amp;quot;absent&amp;quot;,&lt;br /&gt;
      &amp;quot;suggestions_chances&amp;quot;: 10.17,&lt;br /&gt;
      &amp;quot;text&amp;quot;: &amp;quot;This is an excellent project. Keep up the great work&amp;quot;,&lt;br /&gt;
      &amp;quot;total_volume&amp;quot;: 10,&lt;br /&gt;
      &amp;quot;volume_without_stopwords&amp;quot;: 6&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
== Testing Plan ==&lt;br /&gt;
This project mainly addresses the UI issues and some code refactoring in views. Therefore, we will be focussing on view tests as all the automated tests have been previously implemented and new code won't affect those.&lt;br /&gt;
&lt;br /&gt;
===View Tests(Manual)===&lt;br /&gt;
&lt;br /&gt;
#The functionality was written on the client side in javascript solely in _response_analysis.html.erb&lt;br /&gt;
#To test this view, any type of review must be accessible as a student.&lt;br /&gt;
#There is a button at the bottom of the review called 'Get Review Feedback'.&lt;br /&gt;
#When pressing button, API calls are issued and the metrics will show up within the table (a sample of which is shown in above screenshot).&lt;br /&gt;
#As API calls will take time, 'Loading..' text will appear until the API calls are complete&lt;br /&gt;
#All the review feedback for the comments will be displayed in a colorful table.&lt;br /&gt;
#In the feedback table, upon hovering on the comment number, we will be able to see the rubric item and review comments associated with that particular rubric item&lt;br /&gt;
&lt;br /&gt;
== Important Links ==&lt;br /&gt;
# https://docs.google.com/document/d/1slx4HPIbgTH-psIKMSCF-HDF9brxf-FuYhzVT9ZiIrM/edit#heading=h.fxfungdw1d5r&lt;br /&gt;
# https://github.com/expertiza/expertiza/pull/1952 (Previous implementation pull request)&lt;br /&gt;
# https://www.youtube.com/watch?v=OYZvNVa3GZ8&amp;amp;feature=youtu.be (Youtube video for previous implementation)&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
&lt;br /&gt;
* Prashan Sengo (psengo)&lt;br /&gt;
&lt;br /&gt;
* Griffin Brookshire (glbrook2)&lt;br /&gt;
&lt;br /&gt;
* Divyang Doshi (ddoshi2)&lt;br /&gt;
&lt;br /&gt;
* Srujan Ponnur (sponnur)&lt;/div&gt;</summary>
		<author><name>Sponnur</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:While_loo.PNG&amp;diff=141804</id>
		<title>File:While loo.PNG</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:While_loo.PNG&amp;diff=141804"/>
		<updated>2021-11-28T22:33:12Z</updated>

		<summary type="html">&lt;p&gt;Sponnur: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Sponnur</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Bug-fix-1.PNG&amp;diff=141802</id>
		<title>File:Bug-fix-1.PNG</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Bug-fix-1.PNG&amp;diff=141802"/>
		<updated>2021-11-28T22:23:48Z</updated>

		<summary type="html">&lt;p&gt;Sponnur: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Sponnur</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2150._Integrate_suggestion_detection_algorithm&amp;diff=141801</id>
		<title>CSC/ECE 517 Fall 2021 - E2150. Integrate suggestion detection algorithm</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2150._Integrate_suggestion_detection_algorithm&amp;diff=141801"/>
		<updated>2021-11-28T22:20:18Z</updated>

		<summary type="html">&lt;p&gt;Sponnur: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Problem Definition ==&lt;br /&gt;
Peer-review systems like Expertiza utilize a lot of students’ input to determine each other’s performance. At the same time, students learn from the reviews they receive to improve their own performance. In order to make this happen, it would be good to have everyone give quality reviews instead of generic ones. Currently, Expertiza has a few classifiers that can detect useful features of review comments, such as whether they contain suggestions. The suggestion-detection algorithm has been coded as a web service, and other detection algorithms, such as problem detection and sentiment analysis, also exist as newer web services. We need to make the UI more intuitive by allowing users to view the feedback of specific review comments and the code needs to be refactored to remove redundancy to follow the DRY principle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Previous Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The previous implementation added the following features:&lt;br /&gt;
# Setup a config file 'review_metric.yml' where the instructor can select what review metric to display for the current assignments&lt;br /&gt;
# API calls (sentiment, problem, suggestion) are made and a table is rendered below, displaying the feedback of the review comments.&lt;br /&gt;
# The total time taken by the API calls was also displayed.&lt;br /&gt;
&lt;br /&gt;
=== UI Screenshots ===&lt;br /&gt;
The following image shows how a reviewer interacts with the system to get feedback on the review comments.&lt;br /&gt;
[[File:Steps_metric.png|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
=== Control Flow ===&lt;br /&gt;
&lt;br /&gt;
[[File:Review_metric.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Issues with Previous Work ==&lt;br /&gt;
&lt;br /&gt;
With the previous implementation of this project, students can write comments and request feedback for the comments. There are certain issues with the previous implementation that needs to be addressed.&lt;br /&gt;
&lt;br /&gt;
# The criteria are numbered in the view, and those numbers do not correspond to anything on the rubric form.  So if the rubric is long, it would be quite difficult for the reviewer to figure out what automated feedback referred to which comment.&lt;br /&gt;
# Too much specific information on metrics is encoded into the text.  While some of the info is in configuration files, the help text for the info buttons is in the code.&lt;br /&gt;
# Currently there are many repetitive blocks of code. For Ex.; in _response_analysis.html for the getReviewFeedback(), the API call for each type of tag (sentiment, suggestion, etc) is being repeated. Only the API link differs there.&lt;br /&gt;
#  The previous implementation takes the text area field in the view to fetch the review comment, but it’s not updated dynamically when the user types a comment. The user needs to save the form then go back to edit view and then request feedback.&lt;br /&gt;
&lt;br /&gt;
== Proposed Solution ==&lt;br /&gt;
[[File:PreviousImplementation.jpeg|1000px|thumb| center | previous Implementation]]&lt;br /&gt;
# We need to improve the UI so that if there are many rubric items, users can easily check the feedback for each comment given to each rubric item. We propose the following  solution&lt;br /&gt;
## Each comment on hover shows the user's respective comment on the specific rubric review question so that the feedback is easily accessible.&lt;br /&gt;
### On click of the get review feedback button, we loop through the dynamically created review question form and store the mapping of questions and the reviewer's corresponding comments which on hovered are displayed as a popup.  &lt;br /&gt;
[[File:Proposedsolution.jpeg|1000px|thumb| center | LOFI Design of Proposed Solution]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# Another issue with the current implementation is that code is quite repetitive for making different API calls  (Sentiment, Suggestion, etc). We propose to store the API link in the config file and refer to the variable in the getReviewFeedback()&lt;br /&gt;
# We also plan to remove a global variable response_general, which is being used to store the response of API calls. We will refactor the makeRequest function to directly return the response which can be used in various places. This will resolve implicit coupling issues in the code and make it more easily extendable. &lt;br /&gt;
# The previous implementation has hardcoded configuration information like the help text button. We propose to save this information in config files which can be easily modified and will remove unnecessary information from the code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Implementation == &lt;br /&gt;
&lt;br /&gt;
=== UI Changes ===&lt;br /&gt;
We refactored the UI of the generated table showing the problem, suggestion, and sentiment of the review comment, by adding a tooltip for prompting the Question and its corresponding review comment in the table itself. &lt;br /&gt;
==== UI screenshots ====&lt;br /&gt;
[[File:Review_table.PNG|500px|thumb|center]]&lt;br /&gt;
[[File:Retry.PNG|400px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
==== Javascript implementation ====&lt;br /&gt;
#Description - We have added a tooltip in front of every comment number, which on hovering shows the question for which the feedback is given as well as the review comment given for that question.&lt;br /&gt;
#File changed - app/views/response/_response_analysis.html.erb&lt;br /&gt;
&lt;br /&gt;
=== Bug Fixes (Dynamic Feedback) ===&lt;br /&gt;
Previously, the implementation took into account the text area field because of which we need to save the form before getting the feedback. We changed the implementation so that users can type in a review comment and dynamically get feedback on it before saving.&lt;br /&gt;
==== Javascript implementation ====&lt;br /&gt;
#Description - The global variable response_general was used to store the response, which was not needed as the Promise will return the response and we threw an error in case of rejection, which is handled at the place we call makeRequest&lt;br /&gt;
#File changed - app/views/response/_response_analysis.html.erb&lt;br /&gt;
[[File:Api refact.PNG|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
=== Refactoring (removing code duplication) ===&lt;br /&gt;
In the previous implementation, code was duplicated for handling different scenarios of fetching the review comment. The code was mostly the same with some conditions. We abstracted the functionality into a method that can be used at multiple places instead of duplicating the code&lt;br /&gt;
==== Javascript implementation ====&lt;br /&gt;
#Description  - The internal function create_comment_object is used for generating comment object according to question and class_name of DOM. This comment JSON is then used to pass to the API for fetching the predictions. &lt;br /&gt;
#File changed - app/views/response/_response_analysis.html.erb&lt;br /&gt;
[[File:Create_comment_object.PNG|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Error handling improvements ===&lt;br /&gt;
We introduced error handling by changing the “Loading…” text to “Request failed. Please try again.” if the API for generating feedback fails. Previously, this  case was not handled&lt;br /&gt;
==== Javascript implementation ====&lt;br /&gt;
#Description - We have added try-catch blocks while making API call, and if the promise is rejected we catch the error and change the “Loading…” text at the bottom to “Request failed. Please try again.”&lt;br /&gt;
#Files changed - app/views/response/_response_analysis.html.erb&lt;br /&gt;
[[File:Request_error.PNG|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
[[File:Request error 2.PNG|1200px|thumb|center]]&lt;br /&gt;
=== Possible files to be edited === &lt;br /&gt;
# review_metrics.yml&lt;br /&gt;
# response.html.erb&lt;br /&gt;
# _response_analysis.html.erb&lt;br /&gt;
# response_controller.rb&lt;br /&gt;
# response_controller_spec.rb&lt;br /&gt;
&lt;br /&gt;
== Sample API Input/Output ==&lt;br /&gt;
* Input Text is passed in the following JSON format&lt;br /&gt;
  { &lt;br /&gt;
      &amp;quot;text&amp;quot;: &amp;quot;This is an excellent project. Keep up the great work&amp;quot; &lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
* Output is returned in the following JSON format:&lt;br /&gt;
  {          &lt;br /&gt;
      &amp;quot;sentiment_score&amp;quot;: 0.9,&lt;br /&gt;
      &amp;quot;sentiment_tone&amp;quot;: &amp;quot;Positive&amp;quot;,&lt;br /&gt;
      &amp;quot;suggestions&amp;quot;: &amp;quot;absent&amp;quot;,&lt;br /&gt;
      &amp;quot;suggestions_chances&amp;quot;: 10.17,&lt;br /&gt;
      &amp;quot;text&amp;quot;: &amp;quot;This is an excellent project. Keep up the great work&amp;quot;,&lt;br /&gt;
      &amp;quot;total_volume&amp;quot;: 10,&lt;br /&gt;
      &amp;quot;volume_without_stopwords&amp;quot;: 6&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
== Testing Plan ==&lt;br /&gt;
This project mainly addresses the UI issues and some code refactoring in views. Therefore, we will be focussing on view tests as all the automated tests have been previously implemented and new code won't affect those.&lt;br /&gt;
&lt;br /&gt;
===View Tests(Manual)===&lt;br /&gt;
&lt;br /&gt;
#The functionality was written on the client side in javascript solely in _response_analysis.html.erb&lt;br /&gt;
#To test this view, any type of review must be accessible as a student.&lt;br /&gt;
#There is a button at the bottom of the review called 'Get Review Feedback'.&lt;br /&gt;
#When pressing button, API calls are issued and the metrics will show up within the table (a sample of which is shown in above screenshot).&lt;br /&gt;
#As API calls will take time, 'Loading..' text will appear until the API calls are complete&lt;br /&gt;
#All the review feedback for the comments will be displayed in a colorful table.&lt;br /&gt;
#In the feedback table, upon hovering on the comment number, we will be able to see the rubric item and review comments associated with that particular rubric item&lt;br /&gt;
&lt;br /&gt;
== Important Links ==&lt;br /&gt;
# https://docs.google.com/document/d/1slx4HPIbgTH-psIKMSCF-HDF9brxf-FuYhzVT9ZiIrM/edit#heading=h.fxfungdw1d5r&lt;br /&gt;
# https://github.com/expertiza/expertiza/pull/1952 (Previous implementation pull request)&lt;br /&gt;
# https://www.youtube.com/watch?v=OYZvNVa3GZ8&amp;amp;feature=youtu.be (Youtube video for previous implementation)&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
&lt;br /&gt;
* Prashan Sengo (psengo)&lt;br /&gt;
&lt;br /&gt;
* Griffin Brookshire (glbrook2)&lt;br /&gt;
&lt;br /&gt;
* Divyang Doshi (ddoshi2)&lt;br /&gt;
&lt;br /&gt;
* Srujan Ponnur (sponnur)&lt;/div&gt;</summary>
		<author><name>Sponnur</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Retry.PNG&amp;diff=141800</id>
		<title>File:Retry.PNG</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Retry.PNG&amp;diff=141800"/>
		<updated>2021-11-28T22:15:05Z</updated>

		<summary type="html">&lt;p&gt;Sponnur: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Sponnur</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Review_table.PNG&amp;diff=141799</id>
		<title>File:Review table.PNG</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Review_table.PNG&amp;diff=141799"/>
		<updated>2021-11-28T22:14:48Z</updated>

		<summary type="html">&lt;p&gt;Sponnur: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Sponnur</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Request_error_2.PNG&amp;diff=141798</id>
		<title>File:Request error 2.PNG</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Request_error_2.PNG&amp;diff=141798"/>
		<updated>2021-11-28T22:07:15Z</updated>

		<summary type="html">&lt;p&gt;Sponnur: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Sponnur</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Request_error.PNG&amp;diff=141797</id>
		<title>File:Request error.PNG</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Request_error.PNG&amp;diff=141797"/>
		<updated>2021-11-28T22:06:56Z</updated>

		<summary type="html">&lt;p&gt;Sponnur: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Sponnur</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Create_comment_object.PNG&amp;diff=141796</id>
		<title>File:Create comment object.PNG</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Create_comment_object.PNG&amp;diff=141796"/>
		<updated>2021-11-28T22:01:56Z</updated>

		<summary type="html">&lt;p&gt;Sponnur: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Sponnur</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Api_refact.PNG&amp;diff=141795</id>
		<title>File:Api refact.PNG</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Api_refact.PNG&amp;diff=141795"/>
		<updated>2021-11-28T21:58:07Z</updated>

		<summary type="html">&lt;p&gt;Sponnur: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Sponnur</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2150._Integrate_suggestion_detection_algorithm&amp;diff=141365</id>
		<title>CSC/ECE 517 Fall 2021 - E2150. Integrate suggestion detection algorithm</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2150._Integrate_suggestion_detection_algorithm&amp;diff=141365"/>
		<updated>2021-11-09T01:36:46Z</updated>

		<summary type="html">&lt;p&gt;Sponnur: /* Refactoring */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Problem Definition ==&lt;br /&gt;
Peer-review systems like Expertiza utilize a lot of students’ input to determine each other’s performance. At the same time, students learn from the reviews they receive to improve their own performance. In order to make this happen, it would be good to have everyone give quality reviews instead of generic ones. Currently, Expertiza has a few classifiers that can detect useful features of review comments, such as whether they contain suggestions. The suggestion-detection algorithm has been coded as a web service, and other detection algorithms, such as problem detection and sentiment analysis, also exist as newer web services. We need to make the UI more intuitive by allowing users to view the feedback of specific review comments and the code needs to be refactored to remove redundancy to follow the DRY principle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Previous Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The previous implementation added the following features:&lt;br /&gt;
# Setup a config file 'review_metric.yml' where the instructor can select what review metric to display for the current assignments&lt;br /&gt;
# API calls (sentiment, problem, suggestion) are made and a table is rendered below, displaying the feedback of the review comments.&lt;br /&gt;
# The total time taken by the API calls was also displayed.&lt;br /&gt;
&lt;br /&gt;
=== UI Screenshots ===&lt;br /&gt;
The following image shows how a reviewer interacts with the system to get feedback on the review comments.&lt;br /&gt;
[[File:Steps_metric.png|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
=== Control Flow ===&lt;br /&gt;
&lt;br /&gt;
[[File:Review_metric.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Issues with Previous Work ==&lt;br /&gt;
&lt;br /&gt;
With the previous implementation of this project, students can write comments and request feedback for the comments. There are certain issues with the previous implementation that needs to be addressed.&lt;br /&gt;
&lt;br /&gt;
# The criteria are numbered in the view, and those numbers do not correspond to anything on the rubric form.  So if the rubric is long, it would be quite difficult for the reviewer to figure out what automated feedback referred to which comment.&lt;br /&gt;
# Too much specific information on metrics is encoded into the text.  While some of the info is in configuration files, the help text for the info buttons is in the code.&lt;br /&gt;
# Currently there are many repetitive blocks of code. For Ex.; in _response_analysis.html for the getReviewFeedback(), the API call for each type of tag (sentiment, suggestion, etc) is being repeated. Only the API link differs there.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Proposed Solution == &lt;br /&gt;
===  Refactoring ===&lt;br /&gt;
[[File:PreviousImplementation.jpeg|1000px|thumb| center | previous Implementation]]&lt;br /&gt;
# We need to improve the UI so that if there are many rubric items, users can easily check the feedback for each comment given to each rubric item. We propose the following  solution&lt;br /&gt;
## Each comment on hover shows the user's respective comment on the specific rubric review question so that the feedback is easily accessible.&lt;br /&gt;
### On click of the get review feedback button, we loop through the dynamically created review question form and store the mapping of questions and the reviewer's corresponding comments which on hovered are displayed as a popup.  &lt;br /&gt;
[[File:Proposedsolution.jpeg|1000px|thumb| center | LOFI Design of Proposed Solution]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# Another issue with the current implementation is that code is quite repetitive for making different API calls  (Sentiment, Suggestion, etc). We propose to store the API link in the config file and refer to the variable in the getReviewFeedback()&lt;br /&gt;
# We also plan to remove a global variable response_general, which is being used to store the response of API calls. We will refactor the makeRequest function to directly return the response which can be used in various places. This will resolve implicit coupling issues in the code and make it more easily extendable. &lt;br /&gt;
# The previous implementation has hardcoded configuration information like the help text button. We propose to save this information in config files which can be easily modified and will remove unnecessary information from the code.&lt;br /&gt;
&lt;br /&gt;
=== Possible files to be edited === &lt;br /&gt;
# review_metrics.yml&lt;br /&gt;
# response.html.erb&lt;br /&gt;
# _response_analysis.html.erb&lt;br /&gt;
# response_controller.rb&lt;br /&gt;
# response_controller_spec.rb&lt;br /&gt;
&lt;br /&gt;
== Sample API Input/Output ==&lt;br /&gt;
* Input Text is passed in the following JSON format&lt;br /&gt;
  { &lt;br /&gt;
      &amp;quot;text&amp;quot;: &amp;quot;This is an excellent project. Keep up the great work&amp;quot; &lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
* Output is returned in the following JSON format:&lt;br /&gt;
  {          &lt;br /&gt;
      &amp;quot;sentiment_score&amp;quot;: 0.9,&lt;br /&gt;
      &amp;quot;sentiment_tone&amp;quot;: &amp;quot;Positive&amp;quot;,&lt;br /&gt;
      &amp;quot;suggestions&amp;quot;: &amp;quot;absent&amp;quot;,&lt;br /&gt;
      &amp;quot;suggestions_chances&amp;quot;: 10.17,&lt;br /&gt;
      &amp;quot;text&amp;quot;: &amp;quot;This is an excellent project. Keep up the great work&amp;quot;,&lt;br /&gt;
      &amp;quot;total_volume&amp;quot;: 10,&lt;br /&gt;
      &amp;quot;volume_without_stopwords&amp;quot;: 6&lt;br /&gt;
   }&lt;br /&gt;
== Testing Plan ==&lt;br /&gt;
This project mainly addresses the UI issues and some code refactoring in views. Therefore, we will be focussing on view tests as all the automated tests have been previously implemented and new code won't affect those.&lt;br /&gt;
&lt;br /&gt;
===View Tests(Manual)===&lt;br /&gt;
&lt;br /&gt;
#The functionality was written on the client side in javascript solely in _response_analysis.html.erb&lt;br /&gt;
#To test this view, any type of review must be accessible as a student.&lt;br /&gt;
#There is a button at the bottom of the review called 'Get Review Feedback'.&lt;br /&gt;
#When pressing button, API calls are issued and the metrics will show up within the table (a sample of which is shown in above screenshot).&lt;br /&gt;
#As API calls will take time, 'Loading..' text will appear until the API calls are complete&lt;br /&gt;
#All the review feedback for the comments will be displayed in a colorful table.&lt;br /&gt;
#In the feedback table, upon hovering on the comment number, we will be able to see the rubric item and review comments associated with that particular rubric item&lt;br /&gt;
&lt;br /&gt;
== Important Links ==&lt;br /&gt;
# https://docs.google.com/document/d/1slx4HPIbgTH-psIKMSCF-HDF9brxf-FuYhzVT9ZiIrM/edit#heading=h.fxfungdw1d5r&lt;br /&gt;
# https://github.com/expertiza/expertiza/pull/1952 (Previous implementation pull request)&lt;br /&gt;
# https://www.youtube.com/watch?v=OYZvNVa3GZ8&amp;amp;feature=youtu.be (Youtube video for previous implementation)&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
&lt;br /&gt;
* Prashan Sengo (psengo)&lt;br /&gt;
&lt;br /&gt;
* Griffin Brookshire (glbrook2)&lt;br /&gt;
&lt;br /&gt;
* Divyang Doshi (ddoshi2)&lt;br /&gt;
&lt;br /&gt;
* Srujan Ponnur (sponnur)&lt;/div&gt;</summary>
		<author><name>Sponnur</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2150._Integrate_suggestion_detection_algorithm&amp;diff=141363</id>
		<title>CSC/ECE 517 Fall 2021 - E2150. Integrate suggestion detection algorithm</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2150._Integrate_suggestion_detection_algorithm&amp;diff=141363"/>
		<updated>2021-11-09T01:34:02Z</updated>

		<summary type="html">&lt;p&gt;Sponnur: /* Refactoring */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Problem Definition ==&lt;br /&gt;
Peer-review systems like Expertiza utilize a lot of students’ input to determine each other’s performance. At the same time, students learn from the reviews they receive to improve their own performance. In order to make this happen, it would be good to have everyone give quality reviews instead of generic ones. Currently, Expertiza has a few classifiers that can detect useful features of review comments, such as whether they contain suggestions. The suggestion-detection algorithm has been coded as a web service, and other detection algorithms, such as problem detection and sentiment analysis, also exist as newer web services. We need to make the UI more intuitive by allowing users to view the feedback of specific review comments and the code needs to be refactored to remove redundancy to follow the DRY principle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Previous Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The previous implementation added the following features:&lt;br /&gt;
# Setup a config file 'review_metric.yml' where the instructor can select what review metric to display for the current assignments&lt;br /&gt;
# API calls (sentiment, problem, suggestion) are made and a table is rendered below, displaying the feedback of the review comments.&lt;br /&gt;
# The total time taken by the API calls was also displayed.&lt;br /&gt;
&lt;br /&gt;
=== UI Screenshots ===&lt;br /&gt;
The following image shows how a reviewer interacts with the system to get feedback on the review comments.&lt;br /&gt;
[[File:Steps_metric.png|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
=== Control Flow ===&lt;br /&gt;
&lt;br /&gt;
[[File:Review_metric.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Issues with Previous Work ==&lt;br /&gt;
&lt;br /&gt;
With the previous implementation of this project, students can write comments and request feedback for the comments. There are certain issues with the previous implementation that needs to be addressed.&lt;br /&gt;
&lt;br /&gt;
# The criteria are numbered in the view, and those numbers do not correspond to anything on the rubric form.  So if the rubric is long, it would be quite difficult for the reviewer to figure out what automated feedback referred to which comment.&lt;br /&gt;
# Too much specific information on metrics is encoded into the text.  While some of the info is in configuration files, the help text for the info buttons is in the code.&lt;br /&gt;
# Currently there are many repetitive blocks of code. For Ex.; in _response_analysis.html for the getReviewFeedback(), the API call for each type of tag (sentiment, suggestion, etc) is being repeated. Only the API link differs there.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Proposed Solution == &lt;br /&gt;
===  Refactoring ===&lt;br /&gt;
[[File:PreviousImplementation.jpeg|1000px|thumb| center | previous Implementation]]&lt;br /&gt;
# We need to improve the UI so that if there are many rubric items, users can easily check the feedback for each comment given to each rubric item. We propose the following  solution&lt;br /&gt;
## Each comment on hover shows the user's respective comment on the specific rubric review question so that the feedback is easily accessible.&lt;br /&gt;
### On click of the get review feedback button, we loop through the dynamically created review question form and store the mapping of questions and the reviewer's corresponding comments which on hovered are displayed as a popup.  &lt;br /&gt;
[[File:Proposedsolution.jpeg|1000px|thumb| center | LOFI Design of Proposed Solution]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# Another issue with the current implementation is that code is quite repetitive for making different API calls  (Sentiment, Suggestion, etc). We propose to store the API link in the config file and use the variable in the getReviewFeedback()&lt;br /&gt;
# We also plan to remove a global variable response_general, which is being used to store the response of API calls. We will refactor the makeRequest function to directly return the response which can be used in various places. This will resolve implicit coupling issues in the code and make it more easily extendible. &lt;br /&gt;
# The previous implementation has hardcoded configuration information like the help text button. We propose to save this information in config files which can be easily modified and will remove unnecessary information from the code.&lt;br /&gt;
&lt;br /&gt;
=== Possible files to be edited === &lt;br /&gt;
# review_metrics.yml&lt;br /&gt;
# response.html.erb&lt;br /&gt;
# _response_analysis.html.erb&lt;br /&gt;
# response_controller.rb&lt;br /&gt;
# response_controller_spec.rb&lt;br /&gt;
&lt;br /&gt;
== Sample API Input/Output ==&lt;br /&gt;
* Input Text is passed in the following JSON format&lt;br /&gt;
  { &lt;br /&gt;
      &amp;quot;text&amp;quot;: &amp;quot;This is an excellent project. Keep up the great work&amp;quot; &lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
* Output is returned in the following JSON format:&lt;br /&gt;
  {          &lt;br /&gt;
      &amp;quot;sentiment_score&amp;quot;: 0.9,&lt;br /&gt;
      &amp;quot;sentiment_tone&amp;quot;: &amp;quot;Positive&amp;quot;,&lt;br /&gt;
      &amp;quot;suggestions&amp;quot;: &amp;quot;absent&amp;quot;,&lt;br /&gt;
      &amp;quot;suggestions_chances&amp;quot;: 10.17,&lt;br /&gt;
      &amp;quot;text&amp;quot;: &amp;quot;This is an excellent project. Keep up the great work&amp;quot;,&lt;br /&gt;
      &amp;quot;total_volume&amp;quot;: 10,&lt;br /&gt;
      &amp;quot;volume_without_stopwords&amp;quot;: 6&lt;br /&gt;
   }&lt;br /&gt;
== Testing Plan ==&lt;br /&gt;
This project mainly addresses the UI issues and some code refactoring in views. Therefore, we will be focussing on view tests as all the automated tests have been previously implemented and new code won't affect those.&lt;br /&gt;
&lt;br /&gt;
===View Tests(Manual)===&lt;br /&gt;
&lt;br /&gt;
#The functionality was written on the client side in javascript solely in _response_analysis.html.erb&lt;br /&gt;
#To test this view, any type of review must be accessible as a student.&lt;br /&gt;
#There is a button at the bottom of the review called 'Get Review Feedback'.&lt;br /&gt;
#When pressing button, API calls are issued and the metrics will show up within the table (a sample of which is shown in above screenshot).&lt;br /&gt;
#As API calls will take time, 'Loading..' text will appear until the API calls are complete&lt;br /&gt;
#All the review feedback for the comments will be displayed in a colorful table.&lt;br /&gt;
#In the feedback table, upon hovering on the comment number, we will be able to see the rubric item and review comments associated with that particular rubric item&lt;br /&gt;
&lt;br /&gt;
== Important Links ==&lt;br /&gt;
# https://docs.google.com/document/d/1slx4HPIbgTH-psIKMSCF-HDF9brxf-FuYhzVT9ZiIrM/edit#heading=h.fxfungdw1d5r&lt;br /&gt;
# https://github.com/expertiza/expertiza/pull/1952 (Previous implementation pull request)&lt;br /&gt;
# https://www.youtube.com/watch?v=OYZvNVa3GZ8&amp;amp;feature=youtu.be (Youtube video for previous implementation)&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
&lt;br /&gt;
* Prashan Sengo (psengo)&lt;br /&gt;
&lt;br /&gt;
* Griffin Brookshire (glbrook2)&lt;br /&gt;
&lt;br /&gt;
* Divyang Doshi (ddoshi2)&lt;br /&gt;
&lt;br /&gt;
* Srujan Ponnur (sponnur)&lt;/div&gt;</summary>
		<author><name>Sponnur</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2150._Integrate_suggestion_detection_algorithm&amp;diff=141357</id>
		<title>CSC/ECE 517 Fall 2021 - E2150. Integrate suggestion detection algorithm</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2150._Integrate_suggestion_detection_algorithm&amp;diff=141357"/>
		<updated>2021-11-09T01:26:40Z</updated>

		<summary type="html">&lt;p&gt;Sponnur: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Problem Definition ==&lt;br /&gt;
Peer-review systems like Expertiza utilize a lot of students’ input to determine each other’s performance. At the same time, students learn from the reviews they receive to improve their own performance. In order to make this happen, it would be good to have everyone give quality reviews instead of generic ones. Currently, Expertiza has a few classifiers that can detect useful features of review comments, such as whether they contain suggestions. The suggestion-detection algorithm has been coded as a web service, and other detection algorithms, such as problem detection and sentiment analysis, also exist as newer web services. We need to make the UI more intuitive by allowing users to view the feedback of specific review comments and the code needs to be refactored to remove redundancy to follow the DRY principle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Previous Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The previous implementation added the following features:&lt;br /&gt;
# Setup a config file 'review_metric.yml' where the instructor can select what review metric to display for the current assignments&lt;br /&gt;
# API calls (sentiment, problem, suggestion) are made and a table is rendered below, displaying the feedback of the review comments.&lt;br /&gt;
# The total time taken by the API calls was also displayed.&lt;br /&gt;
&lt;br /&gt;
=== UI Screenshots ===&lt;br /&gt;
The following image shows how a reviewer interacts with the system to get feedback on the review comments.&lt;br /&gt;
[[File:Steps_metric.png|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
=== Control Flow ===&lt;br /&gt;
&lt;br /&gt;
[[File:Review_metric.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Issues with Previous Work ==&lt;br /&gt;
&lt;br /&gt;
With the previous implementation of this project, students can write comments and request feedback for the comments. There are certain issues with the previous implementation that needs to be addressed.&lt;br /&gt;
&lt;br /&gt;
# The criteria are numbered in the view, and those numbers do not correspond to anything on the rubric form.  So if the rubric is long, it would be quite difficult for the reviewer to figure out what automated feedback referred to which comment.&lt;br /&gt;
# Too much specific information on metrics is encoded into the text.  While some of the info is in configuration files, the help text for the info buttons is in the code.&lt;br /&gt;
# Currently there are many repetitive blocks of code. For Ex.; in _response_analysis.html for the getReviewFeedback(), the API call for each type of tag (sentiment, suggestion, etc) is being repeated. Only the API link differs there.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Proposed Solution == &lt;br /&gt;
===  Refactoring ===&lt;br /&gt;
[[File:PreviousImplementation.jpeg|1000px|thumb| center | previous Implementation]]&lt;br /&gt;
# We need to improve the UI so that if there are many rubric items, users can easily check the feedback for each comment given to each rubric item. We propose the following  solution&lt;br /&gt;
## Each comment on hover shows the user's respective comment on the specific rubric review question so that the feedback is easily accessible.&lt;br /&gt;
[[File:Proposedsolution.jpeg|1000px|thumb| center | LOFI Design of Proposed Solution]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# Another issue with the current implementation is that code is quite repetitive for making different API calls  (Sentiment, Suggestion, etc). We propose to store the API link in the config file and use the variable in the getReviewFeedback()&lt;br /&gt;
# We also plan to remove a global variable response_general, which is being used to store the response of API calls. We will refactor the makeRequest function to directly return the response which can be used in various places. This will resolve implicit coupling issues in the code and make it more easily extendible. &lt;br /&gt;
# The previous implementation has hardcoded configuration information like the help text button. We propose to save this information in config files which can be easily modified and will remove unnecessary information from the code.&lt;br /&gt;
&lt;br /&gt;
=== Possible files to be edited === &lt;br /&gt;
# review_metrics.yml&lt;br /&gt;
# response.html.erb&lt;br /&gt;
# _response_analysis.html.erb&lt;br /&gt;
# response_controller.rb&lt;br /&gt;
# response_controller_spec.rb&lt;br /&gt;
&lt;br /&gt;
== Sample API Input/Output ==&lt;br /&gt;
* Input Text is passed in the following JSON format&lt;br /&gt;
  { &lt;br /&gt;
      &amp;quot;text&amp;quot;: &amp;quot;This is an excellent project. Keep up the great work&amp;quot; &lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
* Output is returned in the following JSON format:&lt;br /&gt;
  {          &lt;br /&gt;
      &amp;quot;sentiment_score&amp;quot;: 0.9,&lt;br /&gt;
      &amp;quot;sentiment_tone&amp;quot;: &amp;quot;Positive&amp;quot;,&lt;br /&gt;
      &amp;quot;suggestions&amp;quot;: &amp;quot;absent&amp;quot;,&lt;br /&gt;
      &amp;quot;suggestions_chances&amp;quot;: 10.17,&lt;br /&gt;
      &amp;quot;text&amp;quot;: &amp;quot;This is an excellent project. Keep up the great work&amp;quot;,&lt;br /&gt;
      &amp;quot;total_volume&amp;quot;: 10,&lt;br /&gt;
      &amp;quot;volume_without_stopwords&amp;quot;: 6&lt;br /&gt;
   }&lt;br /&gt;
== Testing Plan ==&lt;br /&gt;
This project mainly addresses the UI issues and some code refactoring in views. Therefore, we will be focussing on view tests as all the automated tests have been previously implemented and new code won't affect those.&lt;br /&gt;
&lt;br /&gt;
===View Tests(Manual)===&lt;br /&gt;
&lt;br /&gt;
#The functionality was written on the client side in javascript solely in _response_analysis.html.erb&lt;br /&gt;
#To test this view, any type of review must be accessible as a student.&lt;br /&gt;
#There is a button at the bottom of the review called 'Get Review Feedback'.&lt;br /&gt;
#When pressing button, API calls are issued and the metrics will show up within the table (a sample of which is shown in above screenshot).&lt;br /&gt;
#As API calls will take time, 'Loading..' text will appear until the API calls are complete&lt;br /&gt;
#All the review feedback for the comments will be displayed in a colorful table.&lt;br /&gt;
#In the feedback table, upon hovering on the comment number, we will be able to see the rubric item and review comments associated with that particular rubric item&lt;br /&gt;
&lt;br /&gt;
== Important Links ==&lt;br /&gt;
# https://docs.google.com/document/d/1slx4HPIbgTH-psIKMSCF-HDF9brxf-FuYhzVT9ZiIrM/edit#heading=h.fxfungdw1d5r&lt;br /&gt;
# https://github.com/expertiza/expertiza/pull/1952 (Previous implementation pull request)&lt;br /&gt;
# https://www.youtube.com/watch?v=OYZvNVa3GZ8&amp;amp;feature=youtu.be (Youtube video for previous implementation)&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
&lt;br /&gt;
* Prashan Sengo (psengo)&lt;br /&gt;
&lt;br /&gt;
* Griffin Brookshire (glbrook2)&lt;br /&gt;
&lt;br /&gt;
* Divyang Doshi (ddoshi2)&lt;br /&gt;
&lt;br /&gt;
* Srujan Ponnur (sponnur)&lt;/div&gt;</summary>
		<author><name>Sponnur</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2150._Integrate_suggestion_detection_algorithm&amp;diff=140631</id>
		<title>CSC/ECE 517 Fall 2021 - E2150. Integrate suggestion detection algorithm</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2150._Integrate_suggestion_detection_algorithm&amp;diff=140631"/>
		<updated>2021-11-03T19:27:53Z</updated>

		<summary type="html">&lt;p&gt;Sponnur: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Problem Definition ==&lt;br /&gt;
Peer-review systems like Expertiza utilize a lot of students’ input to determine each other’s performance. At the same time, students learn from the reviews they receive to improve their own performance. In order to make this happen, it would be good to have everyone give quality reviews instead of generic ones. Currently, Expertiza has a few classifiers that can detect useful features of review comments, such as whether they contain suggestions. The suggestion-detection algorithm has been coded as a web service, and other detection algorithms, such as problem detection and sentiment analysis, also exist as newer web services. We need to make the UI more intuitive by allowing users to view the feedback of specific review comments and the code needs to be refactored to remove redundancy to follow the DRY principle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Previous Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The previous implementation added the following features:&lt;br /&gt;
# Setup a config file 'review_metric.yml' where the instructor can select what review metric to display for the current assignments&lt;br /&gt;
# API calls (sentiment, problem, suggestion) are made and a table is rendered below, displaying the feedback of the review comments.&lt;br /&gt;
# The total time taken by the API calls was also displayed.&lt;br /&gt;
&lt;br /&gt;
=== UI Screenshots ===&lt;br /&gt;
The following image shows how a reviewer interacts with the system to get feedback on the review comments.&lt;br /&gt;
[[File:Steps_metric.png|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
=== Control Flow ===&lt;br /&gt;
&lt;br /&gt;
[[File:Review_metric.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Issues with Previous Work ==&lt;br /&gt;
&lt;br /&gt;
With the previous implementation of this project, students can write comments and request feedback for the comments. There are certain issues with the previous implementation that needs to be addressed.&lt;br /&gt;
&lt;br /&gt;
# The criteria are numbered in the view, and those numbers do not correspond to anything on the rubric form.  So if the rubric is long, it would be quite difficult for the reviewer to figure out what automated feedback referred to which comment.&lt;br /&gt;
# Too much specific information on metrics is encoded into the text.  While some of the info is in configuration files, the help text for the info buttons is in the code.&lt;br /&gt;
# Currently there are many repetitive blocks of code. For Ex.; in _response_analysis.html for the getReviewFeedback(), the API call for each type of tag (sentiment, suggestion, etc) is being repeated. Only the API link differs there.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Proposed Solution == &lt;br /&gt;
===  Refactoring ===&lt;br /&gt;
[[File:PreviousImplementation.jpeg|1000px|thumb| center | previous Implementation]]&lt;br /&gt;
# We need to improve the UI so that if there are many rubric items, users can easily check the feedback for each comment given to each rubric item. We propose the following  solution&lt;br /&gt;
## Each comment on hover shows the user's respective comment on the specific rubric review question so that the feedback is easily accessible.&lt;br /&gt;
[[File:Proposedsolution.jpeg|1000px|thumb| center | LOFI Design of Proposed Solution]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# Another issue with the current implementation is that code is quite repetitive for making different API calls  (Sentiment, Suggestion, etc). We propose to store the API link in the config file and use the variable in the getReviewFeedback()&lt;br /&gt;
# We also plan to remove a global variable response_general, which is being used to store the response of API calls. We will refactor the makeRequest function to directly return the response which can be used in various places. This will resolve implicit coupling issues in the code and make it more easily extendible. &lt;br /&gt;
# The previous implementation has hardcoded configuration information like the help text button. We propose to save this information in config files which can be easily modified and will remove unnecessary information from the code.&lt;br /&gt;
&lt;br /&gt;
=== Possible files to be edited === &lt;br /&gt;
# review_metrics.yml&lt;br /&gt;
# response.html.erb&lt;br /&gt;
# _response_analysis.html.erb&lt;br /&gt;
# response_controller.rb&lt;br /&gt;
# response_controller_spec.rb&lt;br /&gt;
&lt;br /&gt;
== Sample API Input/Output ==&lt;br /&gt;
* Input Text is passed in the following JSON format&lt;br /&gt;
  { &lt;br /&gt;
      &amp;quot;text&amp;quot;: &amp;quot;This is an excellent project. Keep up the great work&amp;quot; &lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
* Output is returned in the following JSON format:&lt;br /&gt;
  {          &lt;br /&gt;
      &amp;quot;sentiment_score&amp;quot;: 0.9,&lt;br /&gt;
      &amp;quot;sentiment_tone&amp;quot;: &amp;quot;Positive&amp;quot;,&lt;br /&gt;
      &amp;quot;suggestions&amp;quot;: &amp;quot;absent&amp;quot;,&lt;br /&gt;
      &amp;quot;suggestions_chances&amp;quot;: 10.17,&lt;br /&gt;
      &amp;quot;text&amp;quot;: &amp;quot;This is an excellent project. Keep up the great work&amp;quot;,&lt;br /&gt;
      &amp;quot;total_volume&amp;quot;: 10,&lt;br /&gt;
      &amp;quot;volume_without_stopwords&amp;quot;: 6&lt;br /&gt;
   }&lt;br /&gt;
== Testing Plan ==&lt;br /&gt;
This project mainly addresses the UI issues and some code refactoring in views. Therefore, we will be focussing on view tests as all the automated tests have been previously implemented and new code won't affect those.&lt;br /&gt;
&lt;br /&gt;
===View Tests===&lt;br /&gt;
&lt;br /&gt;
#The functionality was written on the client side in javascript solely in _response_analysis.html.erb&lt;br /&gt;
#To test this view, any type of review must be accessible as a student.&lt;br /&gt;
#There is a button at the bottom of the review called 'Get Review Feedback'.&lt;br /&gt;
#When pressing button, API calls are issued and the metrics will show up within the table (a sample of which is shown in above screenshot).&lt;br /&gt;
#As API calls will take time, 'Loading..' text will appear until the API calls are complete&lt;br /&gt;
#All the review feedback for the comments will be displayed in a colorful table.&lt;br /&gt;
#In the feedback table, upon hovering on the comment number, we will be able to see the rubric item and review comments associated with that particular rubric item&lt;br /&gt;
&lt;br /&gt;
== Important Links ==&lt;br /&gt;
# https://docs.google.com/document/d/1slx4HPIbgTH-psIKMSCF-HDF9brxf-FuYhzVT9ZiIrM/edit#heading=h.fxfungdw1d5r&lt;br /&gt;
# https://github.com/expertiza/expertiza/pull/1952 (Previous implementation pull request)&lt;br /&gt;
# https://www.youtube.com/watch?v=OYZvNVa3GZ8&amp;amp;feature=youtu.be (Youtube video for previous implementation)&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
&lt;br /&gt;
* Prashan Sengo (psengo)&lt;br /&gt;
&lt;br /&gt;
* Griffin Brookshire (glbrook2)&lt;br /&gt;
&lt;br /&gt;
* Divyang Doshi (ddoshi2)&lt;br /&gt;
&lt;br /&gt;
* Srujan Ponnur (sponnur)&lt;/div&gt;</summary>
		<author><name>Sponnur</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2150._Integrate_suggestion_detection_algorithm&amp;diff=140550</id>
		<title>CSC/ECE 517 Fall 2021 - E2150. Integrate suggestion detection algorithm</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2150._Integrate_suggestion_detection_algorithm&amp;diff=140550"/>
		<updated>2021-11-03T02:05:35Z</updated>

		<summary type="html">&lt;p&gt;Sponnur: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Problem Definition ==&lt;br /&gt;
Peer-review systems like Expertiza utilize a lot of students’ input to determine each other’s performance. At the same time, students learn from the reviews they receive to improve their own performance. In order to make this happen, it would be good to have everyone give quality reviews instead of generic ones. Currently, Expertiza has a few classifiers that can detect useful features of review comments, such as whether they contain suggestions. The suggestion-detection algorithm has been coded as a web service, and other detection algorithms, such as problem detection and sentiment analysis, also exist as newer web services. We need to make the UI more intuitive by allowing users to view the feedback of specific review comments and the code needs to be refactored to remove redundancy to follow the DRY principle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Previous Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The previous implementation added the following features:&lt;br /&gt;
# Setup a config file 'review_metric.yml' where the instructor can select what review metric to display for the current assignments&lt;br /&gt;
# API calls (sentiment, problem, suggestion) are made and a table is rendered below, displaying the feedback of the review comments.&lt;br /&gt;
# The total time taken by the API calls was also displayed.&lt;br /&gt;
&lt;br /&gt;
=== UI Screenshots ===&lt;br /&gt;
The following image shows how a reviewer interacts with the system to get feedback on the review comments.&lt;br /&gt;
[[File:Steps_metric.png|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
=== Control Flow ===&lt;br /&gt;
&lt;br /&gt;
[[File:Review_metric.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Issues with Previous Work ==&lt;br /&gt;
&lt;br /&gt;
With the previous implementation of this project, students can write comments and request feedback for the comments. There are certain issues with the previous implementation that needs to be addressed.&lt;br /&gt;
&lt;br /&gt;
# The criteria are numbered in the view, and those numbers do not correspond to anything on the rubric form.  So if the rubric is long, it would be quite difficult for the reviewer to figure out what automated feedback referred to which comment.&lt;br /&gt;
# Too much specific information on metrics is encoded into the text.  While some of the info is in configuration files, the help text for the info buttons is in the code.&lt;br /&gt;
# Currently there are many repetitive blocks of code. For Ex.; in _response_analysis.html for the getReviewFeedback(), the API call for each type of tag (sentiment, suggestion, etc) is being repeated. Only the API link differs there.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Proposed Solution == &lt;br /&gt;
===  Refactoring ===&lt;br /&gt;
[[File:PreviousImplementation.jpeg|1000px|thumb| center | previous Implementation]]&lt;br /&gt;
# We need to improve the UI so that if there are many rubric items, users can easily check the feedback for each comment given to each rubric item. We propose the following  solution&lt;br /&gt;
## Each comment on hover shows the user's respective comment on the specific rubric review question so that the feedback is easily accessible.&lt;br /&gt;
[[File:Proposedsolution.jpeg|1000px|thumb| center | LOFI Design of Proposed Solution]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# Another issue with the current implementation is that code is quite repetitive for making different API calls  (Sentiment, Suggestion, etc). We propose to store the API link in the config file and use the variable in the getReviewFeedback()&lt;br /&gt;
# We also plan to remove a global variable response_general, which is being used to store the response of API calls. We will refactor the makeRequest function to directly return the response which can be used in various places. This will resolve implicit coupling issues in the code and make it more easily extendible. &lt;br /&gt;
# The previous implementation has hardcoded configuration information like the help text button. We propose to save this information in config files which can be easily modified and will remove unnecessary information from the code.&lt;br /&gt;
&lt;br /&gt;
=== Possible files to be edited === &lt;br /&gt;
# review_metrics.yml&lt;br /&gt;
# response.html.erb&lt;br /&gt;
# _response_analysis.html.erb&lt;br /&gt;
# response_controller.rb&lt;br /&gt;
# response_controller_spec.rb&lt;br /&gt;
&lt;br /&gt;
== Sample API Input/Output ==&lt;br /&gt;
* Input Text is passed in the following JSON format&lt;br /&gt;
  { &lt;br /&gt;
      &amp;quot;text&amp;quot;: &amp;quot;This is an excellent project. Keep up the great work&amp;quot; &lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
* Output is returned in the following JSON format:&lt;br /&gt;
  {          &lt;br /&gt;
      &amp;quot;sentiment_score&amp;quot;: 0.9,&lt;br /&gt;
      &amp;quot;sentiment_tone&amp;quot;: &amp;quot;Positive&amp;quot;,&lt;br /&gt;
      &amp;quot;suggestions&amp;quot;: &amp;quot;absent&amp;quot;,&lt;br /&gt;
      &amp;quot;suggestions_chances&amp;quot;: 10.17,&lt;br /&gt;
      &amp;quot;text&amp;quot;: &amp;quot;This is an excellent project. Keep up the great work&amp;quot;,&lt;br /&gt;
      &amp;quot;total_volume&amp;quot;: 10,&lt;br /&gt;
      &amp;quot;volume_without_stopwords&amp;quot;: 6&lt;br /&gt;
   }&lt;br /&gt;
== Testing Plan ==&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
&lt;br /&gt;
* Prashan Sengo (psengo)&lt;br /&gt;
&lt;br /&gt;
* Griffin Brookshire (glbrook2)&lt;br /&gt;
&lt;br /&gt;
* Divyang Doshi (ddoshi2)&lt;br /&gt;
&lt;br /&gt;
* Srujan (sponnur)&lt;/div&gt;</summary>
		<author><name>Sponnur</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2150._Integrate_suggestion_detection_algorithm&amp;diff=140548</id>
		<title>CSC/ECE 517 Fall 2021 - E2150. Integrate suggestion detection algorithm</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2150._Integrate_suggestion_detection_algorithm&amp;diff=140548"/>
		<updated>2021-11-03T02:01:49Z</updated>

		<summary type="html">&lt;p&gt;Sponnur: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Problem Definition ==&lt;br /&gt;
Peer-review systems like Expertiza utilize a lot of students’ input to determine each other’s performance. At the same time, students learn from the reviews they receive to improve their own performance. In order to make this happen, it would be good to have everyone give quality reviews instead of generic ones. Currently, Expertiza has a few classifiers that can detect useful features of review comments, such as whether they contain suggestions. The suggestion-detection algorithm has been coded as a web service, and other detection algorithms, such as problem detection and sentiment analysis, also exist as newer web services. We need to make the UI more intuitive by allowing users to view the feedback of specific review comments and the code needs to be refactored to remove redundancy to follow the DRY principle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Previous Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The previous implementation added the following features:&lt;br /&gt;
# Setup a config file 'review_metric.yml' where the instructor can select what review metric to display for the current assignments&lt;br /&gt;
# API calls (sentiment, problem, suggestion) are made and a table is rendered below, displaying the feedback of the review comments.&lt;br /&gt;
# The total time taken by the API calls was also displayed.&lt;br /&gt;
&lt;br /&gt;
=== UI Screenshots ===&lt;br /&gt;
The following image shows how a reviewer interacts with the system to get feedback on the review comments.&lt;br /&gt;
[[File:Steps_metric.png|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
=== Control Flow ===&lt;br /&gt;
&lt;br /&gt;
[[File:Review_metric.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Issues with Previous Work ==&lt;br /&gt;
&lt;br /&gt;
With the previous implementation of this project, students can write comments and request feedback for the comments. There are certain issues with the previous implementation that needs to be addressed.&lt;br /&gt;
&lt;br /&gt;
# The criteria are numbered in the view, and those numbers do not correspond to anything on the rubric form.  So if the rubric is long, it would be quite difficult for the reviewer to figure out what automated feedback referred to which comment.&lt;br /&gt;
# Too much specific information on metrics is encoded into the text.  While some of the info is in configuration files, the help text for the info buttons is in the code.&lt;br /&gt;
# Currently there are many repetitive blocks of code. For Ex.; in _response_analysis.html for the getReviewFeedback(), the API call for each type of tag (sentiment, suggestion, etc) is being repeated. Only the API link differs there.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Proposed Solution == &lt;br /&gt;
===  Refactoring ===&lt;br /&gt;
[[File:PreviousImplementation.jpeg|1000px|thumb| center | previous Implementation]]&lt;br /&gt;
# We need to improve the UI so that if there are many rubric items, users can easily check the feedback for each comment given to each rubric item. We propose the following  solution&lt;br /&gt;
## Each comment on hover shows the user's respective comment on the specific rubric review question so that the feedback is easily accessible.&lt;br /&gt;
[[File:Proposedsolution.jpeg|1000px|thumb| center | previous Implementation]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# Another issue with the current implementation is that code is quite repetitive for making different API calls  (Sentiment, Suggestion, etc). We propose to store the API link in the config file and use the variable in the getReviewFeedback()&lt;br /&gt;
# We also plan to remove a global variable response_general, which is being used to store the response of API calls. We will refactor the makeRequest function to directly return the response which can be used in various places. This will resolve implicit coupling issues in the code and make it more easily extendible. &lt;br /&gt;
# The previous implementation has hardcoded configuration information like the help text button. We propose to save this information in config files which can be easily modified and will remove unnecessary information from the code.&lt;br /&gt;
&lt;br /&gt;
=== Possible files to be edited === &lt;br /&gt;
# review_metrics.yml&lt;br /&gt;
# response.html.erb&lt;br /&gt;
# _response_analysis.html.erb&lt;br /&gt;
# response_controller.rb&lt;br /&gt;
# response_controller_spec.rb&lt;br /&gt;
&lt;br /&gt;
== Sample API Input/Output ==&lt;br /&gt;
* Input Text is passed in the following JSON format&lt;br /&gt;
  { &lt;br /&gt;
      &amp;quot;text&amp;quot;: &amp;quot;This is an excellent project. Keep up the great work&amp;quot; &lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
* Output is returned in the following JSON format:&lt;br /&gt;
  {          &lt;br /&gt;
      &amp;quot;sentiment_score&amp;quot;: 0.9,&lt;br /&gt;
      &amp;quot;sentiment_tone&amp;quot;: &amp;quot;Positive&amp;quot;,&lt;br /&gt;
      &amp;quot;suggestions&amp;quot;: &amp;quot;absent&amp;quot;,&lt;br /&gt;
      &amp;quot;suggestions_chances&amp;quot;: 10.17,&lt;br /&gt;
      &amp;quot;text&amp;quot;: &amp;quot;This is an excellent project. Keep up the great work&amp;quot;,&lt;br /&gt;
      &amp;quot;total_volume&amp;quot;: 10,&lt;br /&gt;
      &amp;quot;volume_without_stopwords&amp;quot;: 6&lt;br /&gt;
   }&lt;br /&gt;
== Testing Plan ==&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
&lt;br /&gt;
* Prashan Sengo (psengo)&lt;br /&gt;
&lt;br /&gt;
* Griffin Brookshire (glbrook2)&lt;br /&gt;
&lt;br /&gt;
* Divyang Doshi (ddoshi2)&lt;br /&gt;
&lt;br /&gt;
* Srujan (sponnur)&lt;/div&gt;</summary>
		<author><name>Sponnur</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Proposedsolution.jpeg&amp;diff=140546</id>
		<title>File:Proposedsolution.jpeg</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Proposedsolution.jpeg&amp;diff=140546"/>
		<updated>2021-11-03T01:59:48Z</updated>

		<summary type="html">&lt;p&gt;Sponnur: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Sponnur</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:ProposedSolution.jpeg&amp;diff=140545</id>
		<title>File:ProposedSolution.jpeg</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:ProposedSolution.jpeg&amp;diff=140545"/>
		<updated>2021-11-03T01:57:25Z</updated>

		<summary type="html">&lt;p&gt;Sponnur: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Sponnur</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:PreviousImplementation.jpeg&amp;diff=140543</id>
		<title>File:PreviousImplementation.jpeg</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:PreviousImplementation.jpeg&amp;diff=140543"/>
		<updated>2021-11-03T01:54:27Z</updated>

		<summary type="html">&lt;p&gt;Sponnur: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Sponnur</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2150._Integrate_suggestion_detection_algorithm&amp;diff=140530</id>
		<title>CSC/ECE 517 Fall 2021 - E2150. Integrate suggestion detection algorithm</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2150._Integrate_suggestion_detection_algorithm&amp;diff=140530"/>
		<updated>2021-11-03T01:42:31Z</updated>

		<summary type="html">&lt;p&gt;Sponnur: /* Refactoring */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Problem Definition ==&lt;br /&gt;
Peer-review systems like Expertiza utilize a lot of students’ input to determine each other’s performance. At the same time, students learn from the reviews they receive to improve their own performance. In order to make this happen, it would be good to have everyone give quality reviews instead of generic ones. Currently, Expertiza has a few classifiers that can detect useful features of review comments, such as whether they contain suggestions. The suggestion-detection algorithm has been coded as a web service, and other detection algorithms, such as problem detection and sentiment analysis, also exist as newer web services. We need to make the UI more intuitive by allowing users to view the feedback of specific review comments and the code needs to be refactored to remove redundancy to follow the DRY principle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Previous Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The previous implementation added the following features:&lt;br /&gt;
# Setup a config file 'review_metric.yml' where the instructor can select what review metric to display for the current assignments&lt;br /&gt;
# API calls (sentiment, problem, suggestion) are made and a table is rendered below, displaying the feedback of the review comments.&lt;br /&gt;
# The total time taken by the API calls was also displayed.&lt;br /&gt;
&lt;br /&gt;
=== UI Screenshots ===&lt;br /&gt;
The following image shows how a reviewer interacts with the system to get feedback on the review comments.&lt;br /&gt;
[[File:Steps_metric.png|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
=== Control Flow ===&lt;br /&gt;
&lt;br /&gt;
[[File:Review_metric.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Issues with Previous Work ==&lt;br /&gt;
&lt;br /&gt;
With the previous implementation of this project, students can write comments and request feedback for the comments. There are certain issues with the previous implementation that needs to be addressed.&lt;br /&gt;
&lt;br /&gt;
# The criteria are numbered in the view, and those numbers do not correspond to anything on the rubric form.  So if the rubric is long, it would be quite difficult for the reviewer to figure out what automated feedback referred to which comment.&lt;br /&gt;
# Too much specific information on metrics is encoded into the text.  While some of the info is in configuration files, the help text for the info buttons is in the code.&lt;br /&gt;
# Currently there are many repetitive blocks of code. For Ex.; in _response_analysis.html for the getReviewFeedback(), the API call for each type of tag (sentiment, suggestion, etc) is being repeated. Only the API link differs there.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Proposed Solution == &lt;br /&gt;
===  Refactoring ===&lt;br /&gt;
# We need to improve the UI so that if there are many rubric items, users can easily check the feedback for each comment given to each rubric item. We propose the following  solution&lt;br /&gt;
## Each comment on hover shows the user's respective comment on the specific rubric review question so that the feedback is easily accessible.&lt;br /&gt;
&lt;br /&gt;
# Another issue with the current implementation is that code is quite repetitive for making different API calls  (Sentiment, Suggestion, etc). We propose to store the API link in the config file and use the variable in the getReviewFeedback()&lt;br /&gt;
# We also plan to remove a global variable response_general, which is being used to store the response of API calls. We will refactor the makeRequest function to directly return the response which can be used in various places. This will resolve implicit coupling issues in the code and make it more easily extendible. &lt;br /&gt;
# The previous implementation has hardcoded configuration information like the help text button. We propose to save this information in config files which can be easily modified and will remove unnecessary information from the code.&lt;br /&gt;
&lt;br /&gt;
=== Possible files to be edited === &lt;br /&gt;
# review_metrics.yml&lt;br /&gt;
# response.html.erb&lt;br /&gt;
# _response_analysis.html.erb&lt;br /&gt;
# response_controller.rb&lt;br /&gt;
# response_controller_spec.rb&lt;br /&gt;
&lt;br /&gt;
== Sample API Input/Output ==&lt;br /&gt;
* Input Text is passed in the following JSON format&lt;br /&gt;
  { &lt;br /&gt;
      &amp;quot;text&amp;quot;: &amp;quot;This is an excellent project. Keep up the great work&amp;quot; &lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
* Output is returned in the following JSON format:&lt;br /&gt;
  {          &lt;br /&gt;
      &amp;quot;sentiment_score&amp;quot;: 0.9,&lt;br /&gt;
      &amp;quot;sentiment_tone&amp;quot;: &amp;quot;Positive&amp;quot;,&lt;br /&gt;
      &amp;quot;suggestions&amp;quot;: &amp;quot;absent&amp;quot;,&lt;br /&gt;
      &amp;quot;suggestions_chances&amp;quot;: 10.17,&lt;br /&gt;
      &amp;quot;text&amp;quot;: &amp;quot;This is an excellent project. Keep up the great work&amp;quot;,&lt;br /&gt;
      &amp;quot;total_volume&amp;quot;: 10,&lt;br /&gt;
      &amp;quot;volume_without_stopwords&amp;quot;: 6&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
&lt;br /&gt;
* Prashan Sengo (psengo)&lt;br /&gt;
&lt;br /&gt;
* Griffin Brookshire (glbrook2)&lt;br /&gt;
&lt;br /&gt;
* Divyang Doshi (ddoshi2)&lt;br /&gt;
&lt;br /&gt;
* Srujan (sponnur)&lt;/div&gt;</summary>
		<author><name>Sponnur</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2150._Integrate_suggestion_detection_algorithm&amp;diff=140522</id>
		<title>CSC/ECE 517 Fall 2021 - E2150. Integrate suggestion detection algorithm</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2150._Integrate_suggestion_detection_algorithm&amp;diff=140522"/>
		<updated>2021-11-03T01:37:23Z</updated>

		<summary type="html">&lt;p&gt;Sponnur: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Problem Definition ==&lt;br /&gt;
Peer-review systems like Expertiza utilize a lot of students’ input to determine each other’s performance. At the same time, students learn from the reviews they receive to improve their own performance. In order to make this happen, it would be good to have everyone give quality reviews instead of generic ones. Currently, Expertiza has a few classifiers that can detect useful features of review comments, such as whether they contain suggestions. The suggestion-detection algorithm has been coded as a web service, and other detection algorithms, such as problem detection and sentiment analysis, also exist as newer web services. We need to make the UI more intuitive by allowing users to view the feedback of specific review comments and the code needs to be refactored to remove redundancy to follow the DRY principle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Previous Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The previous implementation added the following features:&lt;br /&gt;
# Setup a config file 'review_metric.yml' where the instructor can select what review metric to display for the current assignments&lt;br /&gt;
# API calls (sentiment, problem, suggestion) are made and a table is rendered below, displaying the feedback of the review comments.&lt;br /&gt;
# The total time taken by the API calls was also displayed.&lt;br /&gt;
&lt;br /&gt;
=== UI Screenshots ===&lt;br /&gt;
The following image shows how a reviewer interacts with the system to get feedback on the review comments.&lt;br /&gt;
[[File:Steps_metric.png|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
=== Control Flow ===&lt;br /&gt;
&lt;br /&gt;
[[File:Review_metric.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Issues with Previous Work ==&lt;br /&gt;
&lt;br /&gt;
With the previous implementation of this project, students can write comments and request feedback for the comments. There are certain issues with the previous implementation that needs to be addressed.&lt;br /&gt;
&lt;br /&gt;
# The criteria are numbered in the view, and those numbers do not correspond to anything on the rubric form.  So if the rubric is long, it would be quite difficult for the reviewer to figure out what automated feedback referred to which comment.&lt;br /&gt;
# Too much specific information on metrics is encoded into the text.  While some of the info is in configuration files, the help text for the info buttons is in the code.&lt;br /&gt;
# Currently there are many repetitive blocks of code. For Ex.; in _response_analysis.html for the getReviewFeedback(), the API call for each type of tag (sentiment, suggestion, etc) is being repeated. Only the API link differs there.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Proposed Solution == &lt;br /&gt;
===  Refactoring ===&lt;br /&gt;
# We need to improve the UI so that if there are many rubric items, users can easily check the feedback for each comment given to each rubric item. We propose two solutions based on feasibility&lt;br /&gt;
## Each comment on hover shows the user's respective comment on the specific rubric review question.&lt;br /&gt;
## Instead of showing a table with feedback on all comments, we will be showing the feedback below each rubric item so that the feedback is easily accessible.&lt;br /&gt;
# Another issue with the current implementation is that code is quite repetitive for making different API calls  (Sentiment, Suggestion, etc). We propose to store the API link in the config file and use the variable in the getReviewFeedback()&lt;br /&gt;
# We also plan to remove a global variable response_general, which is being used to store the response of API calls. We will refactor the makeRequest function to directly return the response which can be used in various places. This will resolve implicit coupling issues in the code and make it more easily extendible. &lt;br /&gt;
# The previous implementation has hardcoded configuration information like the help text button. We propose to save this information in config files which can be easily modified and will remove unnecessary information from the code.&lt;br /&gt;
&lt;br /&gt;
=== Possible files to be edited === &lt;br /&gt;
# review_metrics.yml&lt;br /&gt;
# response.html.erb&lt;br /&gt;
# _response_analysis.html.erb&lt;br /&gt;
# response_controller.rb&lt;br /&gt;
# response_controller_spec.rb&lt;br /&gt;
&lt;br /&gt;
== Sample API Input/Output ==&lt;br /&gt;
* Input Text is passed in the following JSON format&lt;br /&gt;
  { &lt;br /&gt;
      &amp;quot;text&amp;quot;: &amp;quot;This is an excellent project. Keep up the great work&amp;quot; &lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
* Output is returned in the following JSON format:&lt;br /&gt;
  {          &lt;br /&gt;
      &amp;quot;sentiment_score&amp;quot;: 0.9,&lt;br /&gt;
      &amp;quot;sentiment_tone&amp;quot;: &amp;quot;Positive&amp;quot;,&lt;br /&gt;
      &amp;quot;suggestions&amp;quot;: &amp;quot;absent&amp;quot;,&lt;br /&gt;
      &amp;quot;suggestions_chances&amp;quot;: 10.17,&lt;br /&gt;
      &amp;quot;text&amp;quot;: &amp;quot;This is an excellent project. Keep up the great work&amp;quot;,&lt;br /&gt;
      &amp;quot;total_volume&amp;quot;: 10,&lt;br /&gt;
      &amp;quot;volume_without_stopwords&amp;quot;: 6&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
&lt;br /&gt;
* Prashan Sengo (psengo)&lt;br /&gt;
&lt;br /&gt;
* Griffin Brookshire (glbrook2)&lt;br /&gt;
&lt;br /&gt;
* Divyang Doshi (ddoshi2)&lt;br /&gt;
&lt;br /&gt;
* Srujan (sponnur)&lt;/div&gt;</summary>
		<author><name>Sponnur</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2150._Integrate_suggestion_detection_algorithm&amp;diff=140493</id>
		<title>CSC/ECE 517 Fall 2021 - E2150. Integrate suggestion detection algorithm</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2150._Integrate_suggestion_detection_algorithm&amp;diff=140493"/>
		<updated>2021-11-03T00:07:47Z</updated>

		<summary type="html">&lt;p&gt;Sponnur: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Problem Definition ==&lt;br /&gt;
Peer-review systems like Expertiza utilize a lot of students’ input to determine each other’s performance. At the same time, students learn from the reviews they receive to improve their own performance. In order to make this happen, it would be good to have everyone give quality reviews instead of generic ones. Currently, Expertiza has a few classifiers that can detect useful features of review comments, such as whether they contain suggestions. The suggestion-detection algorithm has been coded as a web service, and other detection algorithms, such as problem detection and sentiment analysis, also exist as newer web services. We need to make the UI more intuitive by allowing users to view the feedback of specific review comments and the code needs to be refactored to remove redundancy to follow the DRY principle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Previous Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The previous implementation added the following features:&lt;br /&gt;
# Setup a config file 'review_metric.yml' where the instructor can select what review metric to display for the current assignments&lt;br /&gt;
# API calls (sentiment, problem, suggestion) are made and a table is rendered below, displaying the feedback of the review comments.&lt;br /&gt;
# The total time taken by the API calls was also displayed.&lt;br /&gt;
&lt;br /&gt;
=== UI Screenshots ===&lt;br /&gt;
The following image shows how a reviewer interacts with the system to get feedback on the review comments.&lt;br /&gt;
[[File:Steps_metric.png|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
=== Control Flow ===&lt;br /&gt;
&lt;br /&gt;
[[File:Review_metric.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Issues with Previous Work ==&lt;br /&gt;
&lt;br /&gt;
With the previous implementation of this project, students can write comments and request feedback for the comments. There are certain issues with the previous implementation that needs to be addressed.&lt;br /&gt;
&lt;br /&gt;
# The criteria are numbered in the view, and those numbers do not correspond to anything on the rubric form.  So if the rubric is long, it would be quite difficult for the reviewer to figure out what automated feedback referred to which comment.&lt;br /&gt;
# Too much specific information on metrics is encoded into the text.  While some of the info is in configuration files, the help text for the info buttons is in the code.&lt;br /&gt;
# Currently there are many repetitive blocks of code. For Ex.; in _response_analysis.html for the getReviewFeedback(), the API call for each type of tag (sentiment, suggestion, etc) is being repeated. Only the API link differs there.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Comments on Prior Teams Implementation ==&lt;br /&gt;
* The criteria are numbered in the view, and those numbers do not correspond to anything on the rubric form.  &lt;br /&gt;
** So if the rubric is long, it would be quite difficult for the reviewer to figure out what automated feedback referred to which comment&lt;br /&gt;
* There is too much specific information on metrics that is encoded into the text.&lt;br /&gt;
** While some of the info is in configuration files, the help text for the info buttons is in the code.  Also, calls for each metric are programmed into the code, though, depending on how diverse they are, this is perhaps unavoidable&lt;br /&gt;
* The code can be more modularized. &lt;br /&gt;
** Currently there are many repetitive blocks of code. For ex; in _response_analysis.html for the getReviewFeedback(), the API call for each type of tag (sentiment, suggestion, etc) is being repeated. Only the API link differs there. So it might be more beneficial to store the API link in the config file and use the variable in the function&lt;br /&gt;
&lt;br /&gt;
== API Endpoints==&lt;br /&gt;
* https://peer-reviews-nlp.herokuapp.com/all for all metrics at once&lt;br /&gt;
* https://peer-reviews-nlp.herokuapp.com/volume for volume metrics only&lt;br /&gt;
* https://peer-reviews-nlp.herokuapp.com/sentiment for sentiment metrics only&lt;br /&gt;
* https://peer-reviews-nlp.herokuapp.com/suggestions for suggestions metrics only&lt;br /&gt;
&lt;br /&gt;
== JSON Formatting ==&lt;br /&gt;
* Input Text is passed in the following JSON format&lt;br /&gt;
  { &lt;br /&gt;
      &amp;quot;text&amp;quot;: &amp;quot;This is an excellent project. Keep up the great work&amp;quot; &lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
* Output is returned in the following JSON format:&lt;br /&gt;
  {          &lt;br /&gt;
      &amp;quot;sentiment_score&amp;quot;: 0.9,&lt;br /&gt;
      &amp;quot;sentiment_tone&amp;quot;: &amp;quot;Positive&amp;quot;,&lt;br /&gt;
      &amp;quot;suggestions&amp;quot;: &amp;quot;absent&amp;quot;,&lt;br /&gt;
      &amp;quot;suggestions_chances&amp;quot;: 10.17,&lt;br /&gt;
      &amp;quot;text&amp;quot;: &amp;quot;This is an excellent project. Keep up the great work&amp;quot;,&lt;br /&gt;
      &amp;quot;total_volume&amp;quot;: 10,&lt;br /&gt;
      &amp;quot;volume_without_stopwords&amp;quot;: 6&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
&lt;br /&gt;
* Prashan Sengo (psengo)&lt;br /&gt;
&lt;br /&gt;
* Griffin Brookshire ()&lt;br /&gt;
&lt;br /&gt;
* Divyang Doshi (ddoshi2)&lt;br /&gt;
&lt;br /&gt;
* Srujan (sponnur)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Relevant Links ==&lt;br /&gt;
* https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Spring_2021_-_E2112._Integrate_Suggestion_Detection_Algorithm&lt;br /&gt;
* https://github.com/expertiza/expertiza/pull/1952&lt;br /&gt;
* https://github.com/harshkachhadia/expertiza/tree/beta&lt;br /&gt;
* https://youtu.be/OYZvNVa3GZ8&lt;/div&gt;</summary>
		<author><name>Sponnur</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2150._Integrate_suggestion_detection_algorithm&amp;diff=140492</id>
		<title>CSC/ECE 517 Fall 2021 - E2150. Integrate suggestion detection algorithm</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2150._Integrate_suggestion_detection_algorithm&amp;diff=140492"/>
		<updated>2021-11-03T00:06:22Z</updated>

		<summary type="html">&lt;p&gt;Sponnur: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Problem Definition ==&lt;br /&gt;
Peer-review systems like Expertiza utilize a lot of students’ input to determine each other’s performance. At the same time, students learn from the reviews they receive to improve their own performance. In order to make this happen, it would be good to have everyone give quality reviews instead of generic ones. Currently, Expertiza has a few classifiers that can detect useful features of review comments, such as whether they contain suggestions. The suggestion-detection algorithm has been coded as a web service, and other detection algorithms, such as problem detection and sentiment analysis, also exist as newer web services. We need to make the UI more intuitive by allowing users to view the feedback of specific review comments and the code needs to be refactored to remove redundancy to follow the DRY principle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Previous Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The previous implementation added the following features:&lt;br /&gt;
# Setup a config file 'review_metric.yml' where the instructor can select what review metric to display for the current assignments&lt;br /&gt;
# API calls (sentiment, problem, suggestion) are made and a table is rendered below, displaying the feedback of the review comments.&lt;br /&gt;
# The total time taken by the API calls was also displayed.&lt;br /&gt;
&lt;br /&gt;
=== UI Screenshots ===&lt;br /&gt;
The following image shows how a reviewer interacts with the system to get feedback on the review comments.&lt;br /&gt;
[[File:Steps_metric.png|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
=== Control Flow ===&lt;br /&gt;
&lt;br /&gt;
[[File:Review_metric.png|1200px|thumb | center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Issues with Previous Work ==&lt;br /&gt;
&lt;br /&gt;
With the previous implementation of this project, students can write comments and request feedback for the comments. There are certain issues with the previous implementation that needs to be addressed.&lt;br /&gt;
&lt;br /&gt;
# The criteria are numbered in the view, and those numbers do not correspond to anything on the rubric form.  So if the rubric is long, it would be quite difficult for the reviewer to figure out what automated feedback referred to which comment.&lt;br /&gt;
# Too much specific information on metrics is encoded into the text.  While some of the info is in configuration files, the help text for the info buttons is in the code.&lt;br /&gt;
# Currently there are many repetitive blocks of code. For Ex.; in _response_analysis.html for the getReviewFeedback(), the API call for each type of tag (sentiment, suggestion, etc) is being repeated. Only the API link differs there.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Comments on Prior Teams Implementation ==&lt;br /&gt;
* The criteria are numbered in the view, and those numbers do not correspond to anything on the rubric form.  &lt;br /&gt;
** So if the rubric is long, it would be quite difficult for the reviewer to figure out what automated feedback referred to which comment&lt;br /&gt;
* There is too much specific information on metrics that is encoded into the text.&lt;br /&gt;
** While some of the info is in configuration files, the help text for the info buttons is in the code.  Also, calls for each metric are programmed into the code, though, depending on how diverse they are, this is perhaps unavoidable&lt;br /&gt;
* The code can be more modularized. &lt;br /&gt;
** Currently there are many repetitive blocks of code. For ex; in _response_analysis.html for the getReviewFeedback(), the API call for each type of tag (sentiment, suggestion, etc) is being repeated. Only the API link differs there. So it might be more beneficial to store the API link in the config file and use the variable in the function&lt;br /&gt;
&lt;br /&gt;
== API Endpoints==&lt;br /&gt;
* https://peer-reviews-nlp.herokuapp.com/all for all metrics at once&lt;br /&gt;
* https://peer-reviews-nlp.herokuapp.com/volume for volume metrics only&lt;br /&gt;
* https://peer-reviews-nlp.herokuapp.com/sentiment for sentiment metrics only&lt;br /&gt;
* https://peer-reviews-nlp.herokuapp.com/suggestions for suggestions metrics only&lt;br /&gt;
&lt;br /&gt;
== JSON Formatting ==&lt;br /&gt;
* Input Text is passed in the following JSON format&lt;br /&gt;
  { &lt;br /&gt;
      &amp;quot;text&amp;quot;: &amp;quot;This is an excellent project. Keep up the great work&amp;quot; &lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
* Output is returned in the following JSON format:&lt;br /&gt;
  {          &lt;br /&gt;
      &amp;quot;sentiment_score&amp;quot;: 0.9,&lt;br /&gt;
      &amp;quot;sentiment_tone&amp;quot;: &amp;quot;Positive&amp;quot;,&lt;br /&gt;
      &amp;quot;suggestions&amp;quot;: &amp;quot;absent&amp;quot;,&lt;br /&gt;
      &amp;quot;suggestions_chances&amp;quot;: 10.17,&lt;br /&gt;
      &amp;quot;text&amp;quot;: &amp;quot;This is an excellent project. Keep up the great work&amp;quot;,&lt;br /&gt;
      &amp;quot;total_volume&amp;quot;: 10,&lt;br /&gt;
      &amp;quot;volume_without_stopwords&amp;quot;: 6&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
&lt;br /&gt;
* Prashan Sengo (psengo)&lt;br /&gt;
&lt;br /&gt;
* Griffin Brookshire ()&lt;br /&gt;
&lt;br /&gt;
* Divyang Doshi (ddoshi2)&lt;br /&gt;
&lt;br /&gt;
* Srujan (sponnur)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Relevant Links ==&lt;br /&gt;
* https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Spring_2021_-_E2112._Integrate_Suggestion_Detection_Algorithm&lt;br /&gt;
* https://github.com/expertiza/expertiza/pull/1952&lt;br /&gt;
* https://github.com/harshkachhadia/expertiza/tree/beta&lt;br /&gt;
* https://youtu.be/OYZvNVa3GZ8&lt;/div&gt;</summary>
		<author><name>Sponnur</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2150._Integrate_suggestion_detection_algorithm&amp;diff=140491</id>
		<title>CSC/ECE 517 Fall 2021 - E2150. Integrate suggestion detection algorithm</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2150._Integrate_suggestion_detection_algorithm&amp;diff=140491"/>
		<updated>2021-11-03T00:00:52Z</updated>

		<summary type="html">&lt;p&gt;Sponnur: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Problem Definition ==&lt;br /&gt;
Peer-review systems like Expertiza utilize a lot of students’ input to determine each other’s performance. At the same time, students learn from the reviews they receive to improve their own performance. In order to make this happen, it would be good to have everyone give quality reviews instead of generic ones. Currently, Expertiza has a few classifiers that can detect useful features of review comments, such as whether they contain suggestions. The suggestion-detection algorithm has been coded as a web service, and other detection algorithms, such as problem detection and sentiment analysis, also exist as newer web services. We need to make the UI more intuitive by allowing users to view the feedback of specific review comments and the code needs to be refactored to remove redundancy to follow the DRY principle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Previous Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The previous implementation added the following features:&lt;br /&gt;
# Setting up a config file 'review_metric.yml' where the instructor can select what review metric to display for the current assignments&lt;br /&gt;
# Based on the selection made by the professor, API calls (sentiment, problem, suggestion) are made and a colorful table is displayed below the review form for students to review&lt;br /&gt;
# The total time is taken for making these API calls will be displayed below the table.&lt;br /&gt;
&lt;br /&gt;
=== UI Screenshots ===&lt;br /&gt;
The following image shows how a reviewer interacts with the system to get feedback on the review comments.&lt;br /&gt;
[[File:Steps_metric.png|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
=== Control Flow ===&lt;br /&gt;
&lt;br /&gt;
[[File:Review_metric.png|1200px|thumb|left]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Issues with Previous Work ==&lt;br /&gt;
&lt;br /&gt;
With the previous implementation of this project, students can write comments and request feedback for the comments. There are certain issues with the previous implementation that needs to be addressed.&lt;br /&gt;
&lt;br /&gt;
# The criteria are numbered in the view, and those numbers do not correspond to anything on the rubric form.  So if the rubric is long, it would be quite difficult for the reviewer to figure out what automated feedback referred to which comment.&lt;br /&gt;
# Too much specific information on metrics is encoded into the text.  While some of the info is in configuration files, the help text for the info buttons is in the code.&lt;br /&gt;
# Currently there are many repetitive blocks of code. For ex; in _response_analysis.html for the getReviewFeedback(), the API call for each type of tag (sentiment, suggestion, etc) is being repeated. Only the API link differs there.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Tasks ==&lt;br /&gt;
There are several tasks that we are looking to address by the end of the project which is seen below: &lt;br /&gt;
&lt;br /&gt;
# When a student submits a review (in the response_controller), we would like to call this web service with the student’s review as the input. We would then want to tell the student whether their reviews contain suggestions or not, so they can make improvements based on the results of the web services. &lt;br /&gt;
#* The response_controller should pass a text string (the comments field of each Answer object) to the web service.&lt;br /&gt;
#* In fact, the response_controller could pass this string to a whole set of metrics (volume, sentiment, problem detection, suggestion counter).&lt;br /&gt;
# We would also like to evaluate how much time this API is taking and if possible work a way out to improve it. We don’t want the system to be terribly slow.&lt;br /&gt;
# We also have a web service for problem detection.  That should be integrated too.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Comments on Prior Teams Implementation ==&lt;br /&gt;
* The criteria are numbered in the view, and those numbers do not correspond to anything on the rubric form.  &lt;br /&gt;
** So if the rubric is long, it would be quite difficult for the reviewer to figure out what automated feedback referred to which comment&lt;br /&gt;
* There is too much specific information on metrics that is encoded into the text.&lt;br /&gt;
** While some of the info is in configuration files, the help text for the info buttons is in the code.  Also, calls for each metric are programmed into the code, though, depending on how diverse they are, this is perhaps unavoidable&lt;br /&gt;
* The code can be more modularized. &lt;br /&gt;
** Currently there are many repetitive blocks of code. For ex; in _response_analysis.html for the getReviewFeedback(), the API call for each type of tag (sentiment, suggestion, etc) is being repeated. Only the API link differs there. So it might be more beneficial to store the API link in the config file and use the variable in the function&lt;br /&gt;
&lt;br /&gt;
== API Endpoints==&lt;br /&gt;
* https://peer-reviews-nlp.herokuapp.com/all for all metrics at once&lt;br /&gt;
* https://peer-reviews-nlp.herokuapp.com/volume for volume metrics only&lt;br /&gt;
* https://peer-reviews-nlp.herokuapp.com/sentiment for sentiment metrics only&lt;br /&gt;
* https://peer-reviews-nlp.herokuapp.com/suggestions for suggestions metrics only&lt;br /&gt;
&lt;br /&gt;
== JSON Formatting ==&lt;br /&gt;
* Input Text is passed in the following JSON format&lt;br /&gt;
  { &lt;br /&gt;
      &amp;quot;text&amp;quot;: &amp;quot;This is an excellent project. Keep up the great work&amp;quot; &lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
* Output is returned in the following JSON format:&lt;br /&gt;
  {          &lt;br /&gt;
      &amp;quot;sentiment_score&amp;quot;: 0.9,&lt;br /&gt;
      &amp;quot;sentiment_tone&amp;quot;: &amp;quot;Positive&amp;quot;,&lt;br /&gt;
      &amp;quot;suggestions&amp;quot;: &amp;quot;absent&amp;quot;,&lt;br /&gt;
      &amp;quot;suggestions_chances&amp;quot;: 10.17,&lt;br /&gt;
      &amp;quot;text&amp;quot;: &amp;quot;This is an excellent project. Keep up the great work&amp;quot;,&lt;br /&gt;
      &amp;quot;total_volume&amp;quot;: 10,&lt;br /&gt;
      &amp;quot;volume_without_stopwords&amp;quot;: 6&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
&lt;br /&gt;
* Prashan Sengo (psengo)&lt;br /&gt;
&lt;br /&gt;
* Griffin Brookshire ()&lt;br /&gt;
&lt;br /&gt;
* Divyang Doshi (ddoshi2)&lt;br /&gt;
&lt;br /&gt;
* Srujan (sponnur)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Relevant Links ==&lt;br /&gt;
* https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Spring_2021_-_E2112._Integrate_Suggestion_Detection_Algorithm&lt;br /&gt;
* https://github.com/expertiza/expertiza/pull/1952&lt;br /&gt;
* https://github.com/harshkachhadia/expertiza/tree/beta&lt;br /&gt;
* https://youtu.be/OYZvNVa3GZ8&lt;/div&gt;</summary>
		<author><name>Sponnur</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2150._Integrate_suggestion_detection_algorithm&amp;diff=140490</id>
		<title>CSC/ECE 517 Fall 2021 - E2150. Integrate suggestion detection algorithm</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2150._Integrate_suggestion_detection_algorithm&amp;diff=140490"/>
		<updated>2021-11-02T23:53:22Z</updated>

		<summary type="html">&lt;p&gt;Sponnur: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Problem Definition ==&lt;br /&gt;
Peer-review systems like Expertiza utilize a lot of students’ input to determine each other’s performance. At the same time, students learn from the reviews they receive to improve their own performance. In order to make this happen, it would be good to have everyone give quality reviews instead of generic ones. Currently, Expertiza has a few classifiers that can detect useful features of review comments, such as whether they contain suggestions. The suggestion-detection algorithm has been coded as a web service, and other detection algorithms, such as problem detection and sentiment analysis, also exist as newer web services. We need to make the UI more intuitive by allowing users to view the feedback of specific review comments and the code needs to be refactored to remove redundancy to follow the DRY principle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Previous Implementation ==&lt;br /&gt;
&lt;br /&gt;
[[File:Steps_metric.png|1200px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The issues are as follows: &lt;br /&gt;
&lt;br /&gt;
With the previous implementation of this project, students can write comments and request feedback for the comments. There are certain issues with the previous implementation that needs to be addressed.&lt;br /&gt;
&lt;br /&gt;
# The criteria are numbered in the view, and those numbers do not correspond to anything on the rubric form.  So if the rubric is long, it would be quite difficult for the reviewer to figure out what automated feedback referred to which comment.&lt;br /&gt;
# Too much specific information on metrics is encoded into the text.  While some of the info is in configuration files, the help text for the info buttons is in the code.&lt;br /&gt;
# Currently there are many repetitive blocks of code. For ex; in _response_analysis.html for the getReviewFeedback(), the API call for each type of tag (sentiment, suggestion, etc) is being repeated. Only the API link differs there.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Tasks ==&lt;br /&gt;
There are several tasks that we are looking to address by the end of the project which is seen below: &lt;br /&gt;
&lt;br /&gt;
# When a student submits a review (in the response_controller), we would like to call this web service with the student’s review as the input. We would then want to tell the student whether their reviews contain suggestions or not, so they can make improvements based on the results of the web services. &lt;br /&gt;
#* The response_controller should pass a text string (the comments field of each Answer object) to the web service.&lt;br /&gt;
#* In fact, the response_controller could pass this string to a whole set of metrics (volume, sentiment, problem detection, suggestion counter).&lt;br /&gt;
# We would also like to evaluate how much time this API is taking and if possible work a way out to improve it. We don’t want the system to be terribly slow.&lt;br /&gt;
# We also have a web service for problem detection.  That should be integrated too.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Comments on Prior Teams Implementation ==&lt;br /&gt;
* The criteria are numbered in the view, and those numbers do not correspond to anything on the rubric form.  &lt;br /&gt;
** So if the rubric is long, it would be quite difficult for the reviewer to figure out what automated feedback referred to which comment&lt;br /&gt;
* There is too much specific information on metrics that is encoded into the text.&lt;br /&gt;
** While some of the info is in configuration files, the help text for the info buttons is in the code.  Also, calls for each metric are programmed into the code, though, depending on how diverse they are, this is perhaps unavoidable&lt;br /&gt;
* The code can be more modularized. &lt;br /&gt;
** Currently there are many repetitive blocks of code. For ex; in _response_analysis.html for the getReviewFeedback(), the API call for each type of tag (sentiment, suggestion, etc) is being repeated. Only the API link differs there. So it might be more beneficial to store the API link in the config file and use the variable in the function&lt;br /&gt;
&lt;br /&gt;
== API Endpoints==&lt;br /&gt;
* https://peer-reviews-nlp.herokuapp.com/all for all metrics at once&lt;br /&gt;
* https://peer-reviews-nlp.herokuapp.com/volume for volume metrics only&lt;br /&gt;
* https://peer-reviews-nlp.herokuapp.com/sentiment for sentiment metrics only&lt;br /&gt;
* https://peer-reviews-nlp.herokuapp.com/suggestions for suggestions metrics only&lt;br /&gt;
&lt;br /&gt;
== JSON Formatting ==&lt;br /&gt;
* Input Text is passed in the following JSON format&lt;br /&gt;
  { &lt;br /&gt;
      &amp;quot;text&amp;quot; : &amp;quot;This is an excellent project. Keep up the great work&amp;quot; &lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
* Output is returned in the following JSON format:&lt;br /&gt;
  {          &lt;br /&gt;
      &amp;quot;sentiment_score&amp;quot;: 0.9,&lt;br /&gt;
      &amp;quot;sentiment_tone&amp;quot;: &amp;quot;Positive&amp;quot;,&lt;br /&gt;
      &amp;quot;suggestions&amp;quot;: &amp;quot;absent&amp;quot;,&lt;br /&gt;
      &amp;quot;suggestions_chances&amp;quot;: 10.17,&lt;br /&gt;
      &amp;quot;text&amp;quot;: &amp;quot;This is an excellent project. Keep up the great work&amp;quot;,&lt;br /&gt;
      &amp;quot;total_volume&amp;quot;: 10,&lt;br /&gt;
      &amp;quot;volume_without_stopwords&amp;quot;: 6&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
&lt;br /&gt;
* Prashan Sengo (psengo)&lt;br /&gt;
&lt;br /&gt;
* Griffin Brookshire ()&lt;br /&gt;
&lt;br /&gt;
* Divyang Doshi ()&lt;br /&gt;
&lt;br /&gt;
* Srujan ()&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Relevant Links ==&lt;br /&gt;
* https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Spring_2021_-_E2112._Integrate_Suggestion_Detection_Algorithm&lt;br /&gt;
* https://github.com/expertiza/expertiza/pull/1952&lt;br /&gt;
* https://github.com/harshkachhadia/expertiza/tree/beta&lt;br /&gt;
* https://youtu.be/OYZvNVa3GZ8&lt;/div&gt;</summary>
		<author><name>Sponnur</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Steps_metric.png&amp;diff=140489</id>
		<title>File:Steps metric.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Steps_metric.png&amp;diff=140489"/>
		<updated>2021-11-02T23:50:13Z</updated>

		<summary type="html">&lt;p&gt;Sponnur: Sponnur uploaded a new version of File:Steps metric.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Sponnur</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2150._Integrate_suggestion_detection_algorithm&amp;diff=140488</id>
		<title>CSC/ECE 517 Fall 2021 - E2150. Integrate suggestion detection algorithm</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2150._Integrate_suggestion_detection_algorithm&amp;diff=140488"/>
		<updated>2021-11-02T23:47:29Z</updated>

		<summary type="html">&lt;p&gt;Sponnur: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Problem Definition ==&lt;br /&gt;
Peer-review systems like Expertiza utilize a lot of students’ input to determine each other’s performance. At the same time, students learn from the reviews they receive to improve their own performance. In order to make this happen, it would be good to have everyone give quality reviews instead of generic ones. Currently, Expertiza has a few classifiers that can detect useful features of review comments, such as whether they contain suggestions. The suggestion-detection algorithm has been coded as a web service, and other detection algorithms, such as problem detection and sentiment analysis, also exist as newer web services. We need to make the UI more intuitive by allowing users to view the feedback of specific review comments and the code needs to be refactored to remove redundancy to follow the DRY principle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The issues are as follows: &lt;br /&gt;
&lt;br /&gt;
With the previous implementation of this project, students can write comments and request feedback for the comments. There are certain issues with the previous implementation that needs to be addressed.&lt;br /&gt;
&lt;br /&gt;
# The criteria are numbered in the view, and those numbers do not correspond to anything on the rubric form.  So if the rubric is long, it would be quite difficult for the reviewer to figure out what automated feedback referred to which comment.&lt;br /&gt;
# Too much specific information on metrics is encoded into the text.  While some of the info is in configuration files, the help text for the info buttons is in the code.&lt;br /&gt;
# Currently there are many repetitive blocks of code. For ex; in _response_analysis.html for the getReviewFeedback(), the API call for each type of tag (sentiment, suggestion, etc) is being repeated. Only the API link differs there.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Tasks ==&lt;br /&gt;
There are several tasks that we are looking to address by the end of the project which is seen below: &lt;br /&gt;
&lt;br /&gt;
# When a student submits a review (in the response_controller), we would like to call this web service with the student’s review as the input. We would then want to tell the student whether their reviews contain suggestions or not, so they can make improvements based on the results of the web services. &lt;br /&gt;
#* The response_controller should pass a text string (the comments field of each Answer object) to the web service.&lt;br /&gt;
#* In fact, the response_controller could pass this string to a whole set of metrics (volume, sentiment, problem detection, suggestion counter).&lt;br /&gt;
# We would also like to evaluate how much time this API is taking and if possible work a way out to improve it. We don’t want the system to be terribly slow.&lt;br /&gt;
# We also have a web service for problem detection.  That should be integrated too.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Comments on Prior Teams Implementation ==&lt;br /&gt;
* The criteria are numbered in the view, and those numbers do not correspond to anything on the rubric form.  &lt;br /&gt;
** So if the rubric is long, it would be quite difficult for the reviewer to figure out what automated feedback referred to which comment&lt;br /&gt;
* There is too much specific information on metrics that is encoded into the text.&lt;br /&gt;
** While some of the info is in configuration files, the help text for the info buttons is in the code.  Also, calls for each metric are programmed into the code, though, depending on how diverse they are, this is perhaps unavoidable&lt;br /&gt;
* The code can be more modularized. &lt;br /&gt;
** Currently there are many repetitive blocks of code. For ex; in _response_analysis.html for the getReviewFeedback(), the API call for each type of tag (sentiment, suggestion, etc) is being repeated. Only the API link differs there. So it might be more beneficial to store the API link in the config file and use the variable in the function&lt;br /&gt;
&lt;br /&gt;
== API Endpoints==&lt;br /&gt;
* https://peer-reviews-nlp.herokuapp.com/all for all metrics at once&lt;br /&gt;
* https://peer-reviews-nlp.herokuapp.com/volume for volume metrics only&lt;br /&gt;
* https://peer-reviews-nlp.herokuapp.com/sentiment for sentiment metrics only&lt;br /&gt;
* https://peer-reviews-nlp.herokuapp.com/suggestions for suggestions metrics only&lt;br /&gt;
&lt;br /&gt;
== JSON Formatting ==&lt;br /&gt;
* Input Text is passed in the following JSON format&lt;br /&gt;
  { &lt;br /&gt;
      &amp;quot;text&amp;quot; : &amp;quot;This is an excellent project. Keep up the great work&amp;quot; &lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
* Output is returned in the following JSON format:&lt;br /&gt;
  {          &lt;br /&gt;
      &amp;quot;sentiment_score&amp;quot;: 0.9,&lt;br /&gt;
      &amp;quot;sentiment_tone&amp;quot;: &amp;quot;Positive&amp;quot;,&lt;br /&gt;
      &amp;quot;suggestions&amp;quot;: &amp;quot;absent&amp;quot;,&lt;br /&gt;
      &amp;quot;suggestions_chances&amp;quot;: 10.17,&lt;br /&gt;
      &amp;quot;text&amp;quot;: &amp;quot;This is an excellent project. Keep up the great work&amp;quot;,&lt;br /&gt;
      &amp;quot;total_volume&amp;quot;: 10,&lt;br /&gt;
      &amp;quot;volume_without_stopwords&amp;quot;: 6&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
&lt;br /&gt;
* Prashan Sengo (psengo)&lt;br /&gt;
&lt;br /&gt;
* Griffin Brookshire ()&lt;br /&gt;
&lt;br /&gt;
* Divyang Doshi ()&lt;br /&gt;
&lt;br /&gt;
* Srujan ()&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Relevant Links ==&lt;br /&gt;
* https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Spring_2021_-_E2112._Integrate_Suggestion_Detection_Algorithm&lt;br /&gt;
* https://github.com/expertiza/expertiza/pull/1952&lt;br /&gt;
* https://github.com/harshkachhadia/expertiza/tree/beta&lt;br /&gt;
* https://youtu.be/OYZvNVa3GZ8&lt;/div&gt;</summary>
		<author><name>Sponnur</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2150._Integrate_suggestion_detection_algorithm&amp;diff=140487</id>
		<title>CSC/ECE 517 Fall 2021 - E2150. Integrate suggestion detection algorithm</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2150._Integrate_suggestion_detection_algorithm&amp;diff=140487"/>
		<updated>2021-11-02T23:38:07Z</updated>

		<summary type="html">&lt;p&gt;Sponnur: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Problem Definition ==&lt;br /&gt;
Peer-review systems like Expertiza utilize a lot of students’ input to determine each other’s performance. At the same time, students learn from the reviews they receive to improve their own performance. In order to make this happen, it would be good to have everyone give quality reviews instead of generic ones. Currently, Expertiza has a few classifiers that can detect useful features of review comments, such as whether they contain suggestions. The suggestion-detection algorithm has been coded as a web service, and other detection algorithms, such as problem detection and sentiment analysis, also exist as newer web services. With the previous implementation of this project, students can write comments and request feedback for the comments. There are certain issues with the previous implementation that needs to be addressed.&lt;br /&gt;
&lt;br /&gt;
The issues are as follows:&lt;br /&gt;
&lt;br /&gt;
# The criteria are numbered in the view, and those numbers do not correspond to anything on the rubric form.  So if the rubric is long, it would be quite difficult for the reviewer to figure out what automated feedback referred to which comment.&lt;br /&gt;
# Too much specific information on metrics is encoded into the text.  While some of the info is in configuration files, the help text for the info buttons is in the code.&lt;br /&gt;
# Currently there are many repetitive blocks of code. For ex; in _response_analysis.html for the getReviewFeedback(), the API call for each type of tag (sentiment, suggestion, etc) is being repeated. Only the API link differs there.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Tasks ==&lt;br /&gt;
There are Several tasks that we are looking to address by the end of the project which are seen below: &lt;br /&gt;
&lt;br /&gt;
# When a student submits a review (in the response_controller), we would like to call this web service with the student’s review as the input. We would then want to tell the student whether their reviews contain suggestions or not, so they can make improvements based on the results of the webservice. &lt;br /&gt;
#* The response_controller should pass a text string (the comments field of each Answer object) to the web service.&lt;br /&gt;
#* In fact, the response_controller could pass this string to a whole set of metrics (volume, sentiment, problem detection, suggestion counter).&lt;br /&gt;
# We would also like to evaluate how much time this API is taking and if possible work a way out to improve it. We don’t want the system to be terribly slow.&lt;br /&gt;
# We also have a web service for problem detection.  That should be integrated too.&lt;br /&gt;
&lt;br /&gt;
== Issues to be Addressed ==&lt;br /&gt;
# Update how current implementation gets data from the web service.&lt;br /&gt;
#* Yulin's code calls another module that grabs the data from web services in bulk, and divvies it out one item at a time.&lt;br /&gt;
#* How would you call it to get suggestion confidence and problem-detection confidence level, etc.?&lt;br /&gt;
# Reading a data structure that tells which metrics we are interested in now, and therefore which need to be shown in the view.&lt;br /&gt;
#* For example, the data structure may say, For this assignment, we are interested in &lt;br /&gt;
#** problem detection&lt;br /&gt;
#** suggestions, and&lt;br /&gt;
#** sentiment analysis.&lt;br /&gt;
#* For another assignment, it might be&lt;br /&gt;
#** localization and&lt;br /&gt;
#** helpfulness&lt;br /&gt;
#Displaying the information in an appropriate view.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Comments on Prior Teams Implementation ==&lt;br /&gt;
* The criteria are numbered in the view, and those numbers do not correspond to anything on the rubric form.  &lt;br /&gt;
** So if the rubric is long, it would be quite difficult for the reviewer to figure out what automated feedback referred to which comment&lt;br /&gt;
* There is too much specific information on metrics that is encoded into the text.&lt;br /&gt;
** While some of the info is in configuration files, the help text for the info buttons is in the code.  Also, calls for each metric are programmed into the code, though, depending on how diverse they are, this is perhaps unavoidable&lt;br /&gt;
* The code can be more modularized. &lt;br /&gt;
** Currently there are many repetitive blocks of code. For ex; in _response_analysis.html for the getReviewFeedback(), the API call for each type of tag (sentiment, suggestion, etc) is being repeated. Only the API link differs there. So it might be more beneficial to store the API link in the config file and use the variable in the function&lt;br /&gt;
&lt;br /&gt;
== API Endpoints==&lt;br /&gt;
* https://peer-reviews-nlp.herokuapp.com/all for all metrics at once&lt;br /&gt;
* https://peer-reviews-nlp.herokuapp.com/volume for volume metrics only&lt;br /&gt;
* https://peer-reviews-nlp.herokuapp.com/sentiment for sentiment metrics only&lt;br /&gt;
* https://peer-reviews-nlp.herokuapp.com/suggestions for suggestions metrics only&lt;br /&gt;
&lt;br /&gt;
== JSON Formatting ==&lt;br /&gt;
* Input Text is passed in the following JSON format&lt;br /&gt;
  { &lt;br /&gt;
      &amp;quot;text&amp;quot; : &amp;quot;This is an excellent project. Keep up the great work&amp;quot; &lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
* Output is returned in the following JSON format:&lt;br /&gt;
  {          &lt;br /&gt;
      &amp;quot;sentiment_score&amp;quot;: 0.9,&lt;br /&gt;
      &amp;quot;sentiment_tone&amp;quot;: &amp;quot;Positive&amp;quot;,&lt;br /&gt;
      &amp;quot;suggestions&amp;quot;: &amp;quot;absent&amp;quot;,&lt;br /&gt;
      &amp;quot;suggestions_chances&amp;quot;: 10.17,&lt;br /&gt;
      &amp;quot;text&amp;quot;: &amp;quot;This is an excellent project. Keep up the great work&amp;quot;,&lt;br /&gt;
      &amp;quot;total_volume&amp;quot;: 10,&lt;br /&gt;
      &amp;quot;volume_without_stopwords&amp;quot;: 6&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
&lt;br /&gt;
* Prashan Sengo (psengo)&lt;br /&gt;
&lt;br /&gt;
* Griffin Brookshire ()&lt;br /&gt;
&lt;br /&gt;
* Divyang Doshi ()&lt;br /&gt;
&lt;br /&gt;
* Srujan ()&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Relevant Links ==&lt;br /&gt;
* https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Spring_2021_-_E2112._Integrate_Suggestion_Detection_Algorithm&lt;br /&gt;
* https://github.com/expertiza/expertiza/pull/1952&lt;br /&gt;
* https://github.com/harshkachhadia/expertiza/tree/beta&lt;br /&gt;
* https://youtu.be/OYZvNVa3GZ8&lt;/div&gt;</summary>
		<author><name>Sponnur</name></author>
	</entry>
</feed>