MCPcopy
hub / github.com/stanfordnlp/stanza / pop

Method pop

stanza/models/constituency/tree_stack.py:39–40  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

37 self.length = length
38
39 def pop(self):
40 return self.parent
41
42 def push(self, value):
43 # returns a new stack node which points to this

Callers 15

test_simpleFunction · 0.95
visualize_ner_docFunction · 0.80
random_splitFunction · 0.80
convert_nkjpFunction · 0.80
list_wikipedia_filesFunction · 0.80
process_documentsFunction · 0.80
process_documentsFunction · 0.80
build_default_pretrainsFunction · 0.80
get_default_fastFunction · 0.80
test_shiftFunction · 0.80
test_push_state_singleFunction · 0.80

Calls

no outgoing calls

Tested by 6

test_simpleFunction · 0.76
test_shiftFunction · 0.64
test_push_state_singleFunction · 0.64
test_two_headsFunction · 0.64