MCPcopy Create free account
hub / github.com/ResearAI/DeepReviewer-v2 / __init__

Method __init__

pasa/pasa/paper_node.py:17–26  ·  view source on GitHub ↗
(self, attrs)

Source from the content-addressed store, hash-verified

15
16class PaperNode:
17 def __init__(self, attrs):
18 self.title = attrs.get("title", "")
19 self.arxiv_id = attrs.get("arxiv_id", "")
20 self.depth = attrs.get("depth", -1)
21 self.child = {k: [PaperNode(i) for i in v] for k, v in attrs.get("child", {}).items()}
22 self.abstract = attrs.get("abstract", "")
23 self.sections = attrs.get("sections", "") # section name -> list of citation papers
24 self.source = attrs.get("source", "Root") # Root, Search, Expand
25 self.select_score = attrs.get("select_score", 0.0) # the result of the selecte model
26 self.extra = attrs.get("extra", {})
27
28 def todic(self):
29 return {

Callers

nothing calls this directly

Calls 2

PaperNodeClass · 0.85
getMethod · 0.45

Tested by

no test coverage detected