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

Questions for running sentence query #5

Open
YuSheng-00 opened this issue Dec 13, 2023 · 0 comments
Open

Questions for running sentence query #5

YuSheng-00 opened this issue Dec 13, 2023 · 0 comments

Comments

@YuSheng-00
Copy link

Thanks very much for sharing your work. But I'm sorry that I have some coding questions that I would like to ask you.
On the line 126 of the file sentence_query.py , the function q.match() is passed a arguments which is an instance of Index Class. However, for a Query object A , its method A.match() is required to be passed an instance of Head class as shown on line 256 of the file struct_query.py. And according to the code inside the match() function, we can infer that the passed argument should be a token object. This conflict causes that I can't reproduce your code successfully. Maybe it's because I misunderstood some parts of your code. So could you please briefly explain to me how to change it so that it can run correctly? Thank you very much.

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

No branches or pull requests

1 participant