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

ud2gf: Fallback to morphoanalyze if parse fails + use Str functions for lexical backups #30

Draft
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

anka-213
Copy link
Member

@anka-213 anka-213 commented Feb 18, 2022

  • If a lemma fails to parse with gf in the expected category, check if morphoanalyze gives a result.
  • If neither succeeds, instead of inventing new imaginary lexical functions, look for functions of the shape
Str[ExpectedCat] : Str -> ExpectedCat

This is a somewhat breaking change if someone relied of the old way of inventing functions, but on the other hand, it didn't produce valid GF expressions in those cases, so it's unlikely that anything would break in practice.

One option is to put this behaviour behind a flag, so the new behaviour is opt-in, as is suggested in #24?

@anka-213 anka-213 marked this pull request as draft February 18, 2022 08:44
@anka-213 anka-213 force-pushed the morphoanalyze-fallback branch 3 times, most recently from 3057fee to 517d322 Compare March 30, 2022 09:14
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

Successfully merging this pull request may close these issues.

1 participant