feat: Add symbol parsing, fuzzy search, and syntax-based search#3
Merged
aaronstevenwhite merged 26 commits intomainfrom Sep 30, 2025
Merged
Conversation
…g-and-fuzzy-search
…d morphological feature matching case-insensitive.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR introduces symbol parsing capabilities, fuzzy string matching, and syntax-based search functionality to the Glazing package. These features enable users to parse linguistic identifiers, perform approximate string matching, and search across datasets using syntactic patterns.
Type of Change
Changes Made
Core Features
MappingIndexImplementation Details
give.01(PropBank) or02756558-n(WordNet)MappingIndexclass with file-based cachingNew Files Added (12 new modules)
src/glazing/syntax/- Syntactic pattern models and parsersrc/glazing/utils/fuzzy_match.py- Fuzzy matching utilitiessrc/glazing/utils/ranking.py- Result ranking functionssrc/glazing/references/index.py- Mapping index implementationsrc/glazing/symbols.py- Symbol type definitionssrc/glazing/{dataset}/symbol_parser.py- Dataset parsers (4 files)Documentation Added (18 docs)
docs/user-guide/fuzzy-search.md- Fuzzy search guidedocs/user-guide/syntax-search.md- Syntax search guidedocs/api/{dataset}/symbol-parser.md- API docs (4 files)docs/api/utils/fuzzy-match.md- Fuzzy match APIdocs/api/symbols.md- Symbols APITesting
mypy --strict src/passesruff checkpassesruff formatvalidatedDependencies
python-Levenshtein>=0.20.0added to dependenciesDocker Support
Code Examples
Symbol Parsing
Fuzzy Search
Syntax Search