Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
angeloprobst committed Nov 5, 2024
1 parent 5c2f7bc commit 38160b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hyperon_das/tokenizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ def untokenize(query_tokens: str) -> Query:
tokens = query_tokens.split()
cursor = 0
try:
cursor, query = FROM_TOKENS_DICT[tokens[cursor]](tokens)
cursor, query = FROM_TOKENS_DICT[tokens[cursor]](tokens, cursor)
return DictQueryTokenizer.to_query_dict[type(query)](query)
except KeyError as ex:
raise ValueError(f"Unsupported element: {tokens[cursor:]}, key error: {ex}")
Expand Down

0 comments on commit 38160b8

Please sign in to comment.