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

AttributeError: 'OC_NotExpressionContext' object has no attribute 'OR' #13

Open
Vic-GoodLuck opened this issue Oct 26, 2024 · 2 comments

Comments

@Vic-GoodLuck
Copy link

For some corpus templates, the following error occurred when attempting to generate queries:

File "Awesome-Text2GQL/base/TransVisitor.py", line 934, in visitOC_OrExpression
if ctx.OR():
AttributeError: 'OC_NotExpressionContext' object has no attribute 'OR'

Is this an error in my corpus template setting or in the code of Awesome-Text2GQL?

@Panghy1106
Copy link
Contributor

Panghy1106 commented Oct 29, 2024

Could you please offer your templates.

It seems so weird to meet the error.

@Frankie-Dejong
Copy link

Frankie-Dejong commented Nov 9, 2024

Could you please offer your templates.

It seems so weird to meet the error.

I met a similar problem showed as 'OC_XorExpressionContext' object has no attribute 'OR'. It seems to appear very frequently. Here is an example:

MATCH (a) WHERE a.name >= 'Peter' RETURN a.name, a.born

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

3 participants