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

Method CreateGraph

module/dataloader.py:222–268  ·  view source on GitHub ↗

Create a graph for each document :param input_pad: list(list); [sentnum, wordnum] :param label: list(list); [sentnum, sentnum] :param w2s_w: dict(dict) {str: {str: float}}; for each sentence and each word, the tfidf between them :return: G: dgl.DGLGraph

(self, input_pad, label, w2s_w)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

__getitem__Method · 0.95

Calls 2

AddWordNodeMethod · 0.95
id2wordMethod · 0.80

Tested by

no test coverage detected