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

Vocabulary in recognizer code #8

Open
jeffreykegler opened this issue Jun 25, 2022 · 0 comments
Open

Vocabulary in recognizer code #8

jeffreykegler opened this issue Jun 25, 2022 · 0 comments

Comments

@jeffreykegler
Copy link

I've given the recognizer code a couple of readings, and two comments:

I take it the PartialParses object is more or less what's called an "Earley table" in the literature. Analogous with what I suggested for PartialParse, I'd suggest the name be changed to make it easier for a reader to see the connection to the Earley literature.

"Earleme" seems to be used as a synonym for "Earley set". In my usage it refers to locations, and differs from "Earley set ID" or "Earley set ordinal" only when variable length tokens are in use, and there are locations without Earley sets. If you are not currently implementing that feature, I would not use the term "earleme" at all, to avoid confusion with the concept in my writings.

I can see how the confusion might arise, because you'll see me use phrases like "look for a prediction at an earleme" all the time in the Marpa literature, where the meaning is very close to "look for a prediction in an Earley set". And perhaps I used the term loosely at points. But, analogous to "Earley item" and "Earley table", best to track the terms in the literature, when all else is equal.

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