Skip to content

How does ASTactic deal with novel symbols? #24

Answered by yangky11
brando90 asked this question in Q&A
Discussion options

You must be logged in to vote

That's a great question. We don't have to handle out-of-vocabulary tokens because we only use the token's type when encoding a term. For example, if a term is x + y = 3, we encode it in a way analogous to int variable + int variable = int constant. So we can handle novel cases such as P + Q = 4.

This is of course a very rudimentary solution, and it should be possible to do better by taking tokens themselves into account.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by yangky11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants