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

Support direction restrictions in weights #84

Open
marcriera opened this issue May 15, 2020 · 1 comment
Open

Support direction restrictions in weights #84

marcriera opened this issue May 15, 2020 · 1 comment
Labels
enhancement New feature or request weighting

Comments

@marcriera
Copy link
Member

Currently, weights are specified using the w attribute. Using it in a bidix gives an entry the same weight for both directions, potentially producing unwanted effects if there are lexical units with multiple translations in both directions.

I suggest adding the attributes wr and wl with a behaviour equivalent to what vr and vl already do with variants.

Thanks!

@ftyers ftyers added weighting enhancement New feature or request labels Jun 20, 2020
@ftyers
Copy link
Member

ftyers commented Jun 20, 2020

Or w could apply to <l> and <r>. Although really this is a question for r=LR and r=RL. If you want different weights then these are really different entries, so e.g.

<e r="LR" w="1.0"><p><l>estació<s n="n"/><s n="f"/></l><r>station<s n="n"/></r></p></e>
<e w="3.0"><p><l>estació<s n="n"/><s n="f"/></l><r>season<s n="n"/></r></p></e>
<e r="RL" w="2.0"><p><l>estació<s n="n"/><s n="f"/></l><r>station<s n="n"/></r></p></e>
<e w="3.0"><p><l>lloc<s n="n"/><s n="f"/></l><r>station<s n="n"/></r></p></e>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request weighting
Projects
None yet
Development

No branches or pull requests

2 participants