Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Aigner authored and Michael Aigner committed Sep 11, 2020
1 parent a40bcf5 commit c580793
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion PDFSegmenter/util/GraphUtil.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import networkx as nx
import numpy as np
from util import constants
from PDFSegmenter.util import constants


def get_graph_bounding_box(graph):
Expand Down
6 changes: 6 additions & 0 deletions test/Tester.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
from PDFSegmenter.PDFSegmenter import PDFSegmenter

segmenter = PDFSegmenter("../pdf/eu-001.pdf")
segmenter.segment_document()
text = segmenter.segments2text(annotate=True)
plain_text = segmenter.segments2text(annotate=False)
json = segmenter.segments2json()
graphs = segmenter.get_labeled_graphs()
print(graphs)

0 comments on commit c580793

Please sign in to comment.