From 0a503ce5e0697c617d9bfae8cc0dc5141e3673f9 Mon Sep 17 00:00:00 2001 From: Madeesh Kannan Date: Mon, 2 May 2022 13:36:35 +0200 Subject: [PATCH] Remove vestigial debug print statement in `walk_head_nodes` (#10718) * `graph`: Remove vestigial debug print statement in `walk_head_nodes` * Revert whitespace changes * Remove more debug print statements --- spacy/tokens/graph.pyx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/spacy/tokens/graph.pyx b/spacy/tokens/graph.pyx index 9351435f8..9d64f924e 100644 --- a/spacy/tokens/graph.pyx +++ b/spacy/tokens/graph.pyx @@ -484,7 +484,6 @@ cdef class Graph: for idx in indices: node.push_back(idx) i = add_node(&self.c, node) - print("Add node", indices, i) return Node(self, i) def get_node(self, indices) -> Node: @@ -501,7 +500,6 @@ cdef class Graph: if node_index < 0: return NoneNode(self) else: - print("Get node", indices, node_index) return Node(self, node_index) def has_node(self, tuple indices) -> bool: @@ -661,8 +659,6 @@ cdef int walk_head_nodes(vector[int]& output, const GraphC* graph, int node) nog seen.insert(node) i = 0 while i < output.size(): - with gil: - print("Walk up from", output[i]) if seen.find(output[i]) == seen.end(): seen.insert(output[i]) get_head_nodes(output, graph, output[i])