Skip to content

Commit

Permalink
Merge pull request #563 from stweil/typos
Browse files Browse the repository at this point in the history
Fix some typos in comments and documentation (found by codespell)
  • Loading branch information
mittagessen authored Jan 16, 2024
2 parents 04c7e05 + 8084fc7 commit fbdf4e3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion kraken/ketos/ro.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
@click.option('--lag',
show_default=True,
default=READING_ORDER_HYPER_PARAMS['lag'],
help='Number of evaluations (--report frequence) to wait before stopping training without improvement')
help='Number of evaluations (--report frequency) to wait before stopping training without improvement')
@click.option('--min-delta',
show_default=True,
default=READING_ORDER_HYPER_PARAMS['min_delta'],
Expand Down
2 changes: 1 addition & 1 deletion kraken/kraken.py
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ def ocr(ctx, model, pad, reorder, base_dir, no_segmentation, text_direction):
if reorder and base_dir != 'auto':
reorder = base_dir

# first we try to find the model in the absolue path, then ~/.kraken
# first we try to find the model in the absolute path, then ~/.kraken
nm = {} # type: Dict[str, models.TorchSeqRecognizer]
ign_tags = model.pop('ignore')
for k, v in model.items():
Expand Down
4 changes: 2 additions & 2 deletions kraken/lib/dataset/recognition.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ def add(self,
line: Optional[BaselineLine] = None,
page: Optional[Segmentation] = None):
"""
Adds an indiviual line or all lines on a page to the dataset.
Adds an individual line or all lines on a page to the dataset.
Args:
line: BaselineLine container object of a line.
Expand Down Expand Up @@ -518,7 +518,7 @@ def add(self,
line: Optional[BBoxLine] = None,
page: Optional[Segmentation] = None):
"""
Adds an indiviual line or all lines on a page to the dataset.
Adds an individual line or all lines on a page to the dataset.
Args:
line: BBoxLine container object of a line.
Expand Down
2 changes: 1 addition & 1 deletion kraken/lib/segmentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1031,7 +1031,7 @@ def extract_polygons(im: Image.Image, bounds: 'Segmentation') -> Image.Image:
Args:
im: Input image
bounds: A Segmentation class containing a boundig box or baseline
bounds: A Segmentation class containing a bounding box or baseline
segmentation.
Yields:
Expand Down

0 comments on commit fbdf4e3

Please sign in to comment.