Skip to content

Commit

Permalink
Fix to work only with available API as we have removed an API
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelsuzukisagi committed Feb 11, 2019
1 parent 9ec57fa commit 68b00b3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Expand Up @@ -40,7 +40,7 @@ window.addEventListener("load", function () {
XHR.addEventListener("error", function(event) {
alert('Oups! Somehting went wrong.');
});
XHR.open("POST", "/analyze/" + library.value + "/text");
XHR.open("POST", "/analyze/text");
XHR.send(text.value);
results.style.visibility='hidden';
}
Expand Down
4 changes: 0 additions & 4 deletions sentiment-analysis/src/main/resources/static/views/index.html
Expand Up @@ -12,10 +12,6 @@
<img src="/images/devcon.png"/>
<div>
<form id="analyze">
<select id="library">
<option value="v1">Stanford NLP</option>
<option value="v2">Open NLP</option>
</select>
<input type="text" id="text" placeholder="Text to analyze..." />
</form>
</div>
Expand Down

0 comments on commit 68b00b3

Please sign in to comment.