Skip to content

Commit

Permalink
adjust params.2
Browse files Browse the repository at this point in the history
  • Loading branch information
redur committed Apr 3, 2024
1 parent 9df14d7 commit 3d83a1a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
16 changes: 0 additions & 16 deletions config/matching_params.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,3 @@ material_description:
- pumpversuch
- kernbohrung
- bohrradius
- beispiele
legend_expressions:
- sand
- silt
- kies
- ton
- fremdstoffe
- draht
- schlacke
- vollrohr
- filterrohr
- abdichtung
- auffüllung
- schwarzbelag-stücke
- befestigung/belag

5 changes: 0 additions & 5 deletions src/stratigraphy/util/line.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,6 @@ def text(self) -> str:
def __repr__(self) -> str:
return f"TextLine({self.text}, {self.rect})"

def _is_legend_word(self) -> bool:
individual_words = self.text.split(" ")
if len(individual_words) == 1 and individual_words[0].lower() in material_description["legend_expressions"]:
return True

"""
Check if the current line can be trusted as a stand-alone line, even if it is only a tailing segment of a line that
was directly extracted from the PDF. This decision is made based on the location (especially x0-coordinates) of the
Expand Down

0 comments on commit 3d83a1a

Please sign in to comment.