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

Add an algorithm for inferring relations between spans #61

Open
thatbudakguy opened this issue Jul 17, 2023 · 1 comment
Open

Add an algorithm for inferring relations between spans #61

thatbudakguy opened this issue Jul 17, 2023 · 1 comment

Comments

@thatbudakguy
Copy link
Member

We can implement this as a finite-state transducer.

@thatbudakguy
Copy link
Member Author

transition table

(Last span) PER or WORK PHON, SEM or GRAF META 本,一本,etc. other
[nothing] Add to the source stack Add to the claims stack (and add JDSW to source stack?) Warn and continue Warn and continue Warn and continue Add to the source stack Continue
PER or WORK Add to the source stack Add to the claims stack Warn and continue Emit a SRC between the previous two spans? Continue If it was PER, treat as a compound work Clear the source and claim stacks
PHON, SEM or GRAF Emit a SRC relation tree Add to the claims stack Emit a MOD relation Continue (or merge to last?) Warn and continue Emit a SRC relation tree Emit a SRC relation tree
META Add to the source stack Warn and continue ??? Warn and continue Warn and continue Add to the source stack Clear the source and claim stacks
本,一本,etc. Warn and continue Add to the claims stack Warn and continue Emit a src between the previous two spans? Continue Warn and continue Continue
other Add to the source stack Warn and continue Warn and continue Warn and continue Warn and continue Add to the source stack Continue

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