Skip to content

Commit

Permalink
Fix premap_ids
Browse files Browse the repository at this point in the history
  • Loading branch information
honnibal committed Sep 2, 2024
1 parent 0900b51 commit e67b917
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions thinc/layers/premap_ids.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ cdef lookup(PreshMap mapping, int64_t[:] keys, int64_t default):
@registry.layers("premap_ids.v1")
def premap_ids(
mapping_table: Mapping[int, int],
default: int32_t = 0,
default: int = 0,
*,
column: Optional[int32_t] = None
column: Optional[int] = None
):
"""Remap integer inputs to integers a mapping table, usually as a
preprocess before embeddings."""
Expand Down

0 comments on commit e67b917

Please sign in to comment.