Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions finetune/util/table_labeler.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def fix_spans(
output_space: str,
) -> DocumentSpans:
"""
convers a list of spans (anything with a start, end and optionally text, usually labels or context)
converts a list of spans (anything with a start, end and optionally text, usually labels or context)
between 2 character spaces (document and table)

Will do 1 -> many splits when a span spreads across multiple chunks.
Expand Down Expand Up @@ -160,7 +160,7 @@ def create_chunks_from_doc_offset(
self, doc_offsets: t.List[t.Dict[str, int]]
) -> TableChunks:
"""
Converts the offet list from the table into a Chunk object.
Converts the offset list from the table into a Chunk object.
Storing the mapping from original document to the table-text
as output by get_table_text.
"""
Expand Down Expand Up @@ -655,7 +655,7 @@ def mark_token(t):
)
for t in token_spans:
if not t.get("used", False) and not t.get("ws", False):
LOGGER.warn(f"Token {t} does not appear in any row spans")
LOGGER.warning(f"Token {t} does not appear in any row spans")
return combined_rows

@classmethod
Expand Down