Commit ad2a480e authored by PkSM3's avatar PkSM3

[BUGFIX] matrix height

parent 0c063d1e
......@@ -709,8 +709,9 @@ def node_link(request, corpus_id):
Create the HttpResponse object with the node_link dataset.
'''
print("In node_link() START")
data = get_cooc(request=request, corpus_id=corpus_id, type="node_link")
print("In node_link() END")
return JsonHttpResponse(data)
def adjacency(request, corpus_id):
......
......@@ -236,11 +236,13 @@ class Node(CTENode):
@current_app.task(filter=task_method)
def workflow(self, keys=None, ngramsextractorscache=None, ngramscaches=None, verbose=False):
print("In workflow() START")
self.parse_resources()
type_document = NodeType.objects.get(name='Document')
self.children.filter(type_id=type_document.pk).extract_ngrams(keys=['title',])
from analysis.functions import do_tfidf
do_tfidf(self)
print("In workflow() END")
class Node_Metadata(models.Model):
node = models.ForeignKey(Node)
......
......@@ -61,7 +61,7 @@ text.inactive {
var margin = {top: 80, right: 0, bottom: 10, left: 80},
width = 720,
height = 720;
height = 2720;
var x = d3.scale.ordinal().rangeBands([0, width]),
z = d3.scale.linear().domain([0, 4]).clamp(true), //alpha for color-cells
......@@ -69,7 +69,7 @@ var x = d3.scale.ordinal().rangeBands([0, width]),
var svg = d3.select("body").append("svg")
.attr("width", "100%")
.attr("height", "100%")
.attr("height", "115%")
.style("margin-left", "15%")
.append("g")
.attr("transform", "translate(" + "300" + "," + "300" + ")");//challenge: to calculate both parameters! maybe do something with the labels length
......
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