-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed an issue with out-of-order headers and added test cases
- Loading branch information
1 parent
6f571c4
commit 8846995
Showing
4 changed files
with
199 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,4 +53,4 @@ def main(): | |
# Using the special variable | ||
# __name__ | ||
if __name__=="__main__": | ||
main() | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,182 @@ | ||
[ | ||
{ | ||
"tag": "header", | ||
"page_idx": 0, | ||
"block_class": "cls_0", | ||
"sentences": [ | ||
"OutOfOrder Header 1" | ||
], | ||
"block_idx": 0, | ||
"level": 1 | ||
}, | ||
{ | ||
"tag": "header", | ||
"page_idx": 0, | ||
"block_class": "cls_0", | ||
"sentences": [ | ||
"OutOfOrder Header 2" | ||
], | ||
"block_idx": 0, | ||
"level": 1 | ||
}, | ||
{ | ||
"tag": "header", | ||
"page_idx": 0, | ||
"block_class": "cls_0", | ||
"sentences": [ | ||
"Article I" | ||
], | ||
"block_idx": 0, | ||
"level": 0 | ||
}, | ||
{ | ||
"tag": "header", | ||
"page_idx": 0, | ||
"block_class": "cls_0", | ||
"sentences": [ | ||
"Section 1" | ||
], | ||
"block_idx": 0, | ||
"level": 1 | ||
}, | ||
{ | ||
"tag": "header", | ||
"page_idx": 0, | ||
"block_class": "cls_0", | ||
"sentences": [ | ||
"1.1 One point one" | ||
], | ||
"block_idx": 0, | ||
"level": 2 | ||
}, | ||
{ | ||
"tag": "header", | ||
"page_idx": 0, | ||
"block_class": "cls_0", | ||
"sentences": [ | ||
"1.2 One point two" | ||
], | ||
"block_idx": 0, | ||
"level": 2 | ||
}, | ||
{ | ||
"tag": "header", | ||
"page_idx": 0, | ||
"block_class": "cls_0", | ||
"sentences": [ | ||
"Section 2" | ||
], | ||
"block_idx": 0, | ||
"level": 1 | ||
}, | ||
{ | ||
"tag": "header", | ||
"page_idx": 0, | ||
"block_class": "cls_0", | ||
"sentences": [ | ||
"2.1 Two point one" | ||
], | ||
"block_idx": 0, | ||
"level": 2 | ||
}, | ||
{ | ||
"tag": "header", | ||
"page_idx": 0, | ||
"block_class": "cls_0", | ||
"sentences": [ | ||
"2.2 Two point two" | ||
], | ||
"block_idx": 0, | ||
"level": 2 | ||
}, | ||
{ | ||
"tag": "header", | ||
"page_idx": 0, | ||
"block_class": "cls_0", | ||
"sentences": [ | ||
"Article II" | ||
], | ||
"block_idx": 0, | ||
"level": 0 | ||
}, | ||
{ | ||
"tag": "header", | ||
"page_idx": 0, | ||
"block_class": "cls_0", | ||
"sentences": [ | ||
"Section 1" | ||
], | ||
"block_idx": 0, | ||
"level": 1 | ||
}, | ||
{ | ||
"tag": "header", | ||
"page_idx": 0, | ||
"block_class": "cls_0", | ||
"sentences": [ | ||
"1.1 One point one" | ||
], | ||
"block_idx": 0, | ||
"level": 2 | ||
}, | ||
{ | ||
"tag": "header", | ||
"page_idx": 0, | ||
"block_class": "cls_0", | ||
"sentences": [ | ||
"1.2 One point two" | ||
], | ||
"block_idx": 0, | ||
"level": 2 | ||
}, | ||
{ | ||
"tag": "header", | ||
"page_idx": 0, | ||
"block_class": "cls_0", | ||
"sentences": [ | ||
"1.2.1 One point two point one" | ||
], | ||
"block_idx": 0, | ||
"level": 3 | ||
}, | ||
{ | ||
"tag": "header", | ||
"page_idx": 0, | ||
"block_class": "cls_0", | ||
"sentences": [ | ||
"1.2.2 One point two point two" | ||
], | ||
"block_idx": 0, | ||
"level": 3 | ||
}, | ||
{ | ||
"tag": "header", | ||
"page_idx": 0, | ||
"block_class": "cls_0", | ||
"sentences": [ | ||
"Section 2" | ||
], | ||
"block_idx": 0, | ||
"level": 1 | ||
}, | ||
{ | ||
"tag": "header", | ||
"page_idx": 0, | ||
"block_class": "cls_0", | ||
"sentences": [ | ||
"2.1 Two point one" | ||
], | ||
"block_idx": 0, | ||
"level": 2 | ||
}, | ||
{ | ||
"tag": "header", | ||
"page_idx": 0, | ||
"block_class": "cls_0", | ||
"sentences": [ | ||
"2.2 Two point two" | ||
], | ||
"block_idx": 0, | ||
"level": 2 | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters