Skip to content

Commit

Permalink
[Fix] Fix word2fix.py #6
Browse files Browse the repository at this point in the history
Line 19 수정
, . : 에 대해서는 ratio 판별을 하지 않음
  • Loading branch information
KyubumShin authored May 25, 2022
1 parent 77a36ba commit c5fa617
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/word2line.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ def overlap(source: Union[List, Tuple], target: Dict, ratio: float = 0.6) -> boo
source_height = br1[1] - tl1[1]
target_height = br2[1] - tl2[1]
if min(source_height / target_height, target_height / source_height) < ratio:
return False
if target['text'] not in [".", ",", ":"]:
return False

# checks
if tl1[0] >= br2[0] or tl2[0] >= br1[0]:
Expand Down

0 comments on commit c5fa617

Please sign in to comment.