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

Standard mappings #16

Open
mr-martian opened this issue Oct 1, 2024 · 1 comment
Open

Standard mappings #16

mr-martian opened this issue Oct 1, 2024 · 1 comment

Comments

@mr-martian
Copy link
Owner

We've intentionally avoided trying to have a shared vocabulary across different formats, so everyone using the tool has to specify feature mappings in order to get any output. Nonetheless, for specific pairs of formats, it should be possible to create a mapping that will work for most people most of the time, allowing them to write, for example:

[export]
mode = 'conllu'
mapping_sets = ['flextext2conllu']

rather than

[export]
mode = 'conllu'

[[export.mappings]]
in_feature = 'FlexText:en:segnum'
out_feature = 'conllu:sent_id'

[[export.mappings]]
# many more lines

Any explicit mappings should override corresponding lines in the standard mapping, which should work fine if we just load the standard one first and concatenate the lists before calling parse_mappings.

@mr-martian
Copy link
Owner Author

Given the language specifiers in FLExText, this will probably need to be parameterized.

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