Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add StringIndex support in Python/C++ #11

Open
markkohdev opened this issue Jun 21, 2023 · 2 comments
Open

Add StringIndex support in Python/C++ #11

markkohdev opened this issue Jun 21, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@markkohdev
Copy link
Contributor

The java bindings currently support a StringIndex class which wraps the Index class but adds a mapping of strings to index integer IDs. This is a handy piece of functionality which would be beneficial and should be fairly straightforward to implement in the Python bindings

@markkohdev
Copy link
Contributor Author

Additionally, we should support string index containment checking with this python StringIndex as well so that we can write things like

if "some-string-key" in my_index:
  # Do something

@markkohdev markkohdev added the enhancement New feature or request label Sep 20, 2023
@markkohdev markkohdev changed the title Add StringIndex support in Python Add StringIndex support in Python/C++ Jul 1, 2024
@markkohdev
Copy link
Contributor Author

cc @Ibrokhimsadikov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant