MCPcopy Create free account
hub / github.com/dqwang122/HeterSumGraph / CreateGraph

Method CreateGraph

module/dataloader.py:328–406  ·  view source on GitHub ↗

Create a graph for each document :param docLen: list; the length of each document in this example :param sent_pad: list(list), [sentnum, wordnum] :param doc_pad: list, [document, wordnum] :param label: list(list), [sentnum, sentnum] :param w2s_w: dict(dict)

(self, docLen, sent_pad, doc_pad, label, w2s_w, w2d_w)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

__getitem__Method · 0.95

Calls 3

MapSent2DocMethod · 0.95
AddWordNodeMethod · 0.80
id2wordMethod · 0.80

Tested by

no test coverage detected