File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,16 +13,30 @@ ArborParser is a powerful Python library designed to parse structured text docum
1313
1414Given a text document with headings, ArborParser can parse and structure it as follows:
1515
16+ ### Original Text
17+ ```
18+ Chapter 1 Animals
19+ 1.1 Mammals
20+ 1.1.1 Primates
21+ 1.2 Reptiles
22+ 1.2.2 Crocodiles
23+ 1.3 Birds
24+ 1.3.1 Parrots
25+ 1.3.2 Pigeons
26+ Chapter 2 Plants
27+ 2.1 Angiosperms
28+ 2.1.1 Dicotyledons
29+ 2.1.2 Monocotyledons
30+ ```
31+
1632### Chain Structure
1733
1834```
1935LEVEL-[1]: Animals
2036LEVEL-[1, 1]: Mammals
2137LEVEL-[1, 1, 1]: Primates
2238LEVEL-[1, 2]: Reptiles
23- LEVEL-[1, 3, 3]: Snakes # wrong
24- LEVEL-[1, 2, 2]: Crocodiles # hopefully inserted to the upper nearest 1.2
25- LEVEL-[1, 2]: wrong 1.2 # create a new level as a child of 1
39+ LEVEL-[1, 2, 2]: Crocodiles
2640LEVEL-[1, 3]: Birds
2741LEVEL-[1, 3, 1]: Parrots
2842LEVEL-[1, 3, 2]: Pigeons
4054│ ├─ 1.1 Mammals
4155│ │ └─ 1.1.1 Primates
4256│ ├─ 1.2 Reptiles
43- │ │ └─ 1.2.2 Crocodiles # hopefully inserted to the upper nearest 1.2
44- │ ├─ 1.3.3 Snakes # wrong
45- │ ├─ 1.2 wrong 1.2 # create a new level as a child of 1
57+ │ │ └─ 1.2.2 Crocodiles
4658│ └─ 1.3 Birds
4759│ ├─ 1.3.1 Parrots
4860│ └─ 1.3.2 Pigeons
You can’t perform that action at this time.
0 commit comments