Commit 8c5a4451 authored by delanoe's avatar delanoe

Merge branch 'intersection'

parents 940890e7 ff042eba
...@@ -22,7 +22,7 @@ function getIDFromURL( item ) { ...@@ -22,7 +22,7 @@ function getIDFromURL( item ) {
function modify_ngrams( classname ) { function modify_ngrams( classname ) {
console.clear() console.clear()
var corpus_id = getIDFromURL( "corpus" ) // not used var corpus_id = getIDFromURL( "corpora" ) // not used
var list_id = $("#list_id").val() var list_id = $("#list_id").val()
var selected_ngrams = $.extend({}, selections) var selected_ngrams = $.extend({}, selections)
console.log( selected_ngrams ) console.log( selected_ngrams )
...@@ -134,7 +134,7 @@ function CRUD( parent_id , action , nodes , args , http_method , callback) { ...@@ -134,7 +134,7 @@ function CRUD( parent_id , action , nodes , args , http_method , callback) {
return b-a return b-a
}); });
// console.log( AttsDict_sorted ) console.log( AttsDict_sorted )
var div_info = ""; var div_info = "";
...@@ -554,7 +554,7 @@ function getTopPapers(type){ ...@@ -554,7 +554,7 @@ function getTopPapers(type){
var pageurl = window.location.href.split("/") var pageurl = window.location.href.split("/")
var cid; var cid;
for(var i in pageurl) { for(var i in pageurl) {
if(pageurl[i]=="corpus") { if(pageurl[i]=="corpora") {
cid=parseInt(i); cid=parseInt(i);
break; break;
} }
...@@ -574,7 +574,7 @@ function getTopPapers(type){ ...@@ -574,7 +574,7 @@ function getTopPapers(type){
pr(theids) pr(theids)
$.ajax({ $.ajax({
type: 'GET', type: 'GET',
url: window.location.origin+'/api/tfidf/'+corpus_id+'/'+theids.join("a"), url: window.location.origin+'/api/nodes/'+corpus_id+'/having?score=tfidf&ngram_ids='+theids.join(","),
//contentType: "application/json", //contentType: "application/json",
//dataType: 'json', //dataType: 'json',
success : function(data){ success : function(data){
......
File mode changed from 100755 to 100644
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment