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

What do <b> and <c> mean in Program? #9

Closed
yhshu opened this issue Aug 21, 2021 · 3 comments
Closed

What do <b> and <c> mean in Program? #9

yhshu opened this issue Aug 21, 2021 · 3 comments

Comments

@yhshu
Copy link

yhshu commented Aug 21, 2021

I assume that <b> splits functions, and <c> splits arguments of functions, is it true?

Thanks for your reply.

@ShulinCao
Copy link
Collaborator

Exactly~

@yhshu
Copy link
Author

yhshu commented Aug 21, 2021

I haven't actually experimented to the stage of generating results, so there's a question.
The transformer tokenizer, i.e., BART tokenizer here, generally separates symbols like < > from words.
Is there any post-process for seq2seq results to eliminate the side effect, or deal with the possible ill-format SPARQL or Program?

@ShulinCao
Copy link
Collaborator

For SPARQL,there is post-process as shown in

def post_process(text):
.

@yhshu yhshu closed this as completed Aug 21, 2021
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

2 participants