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

Relating feature values in search templates #10

Closed
dirkroorda opened this issue Jun 4, 2018 · 2 comments
Closed

Relating feature values in search templates #10

dirkroorda opened this issue Jun 4, 2018 · 2 comments

Comments

@dirkroorda
Copy link
Member

Currently, when writing search templates you cannot express that the value of one feature on on node
is equal to the value of another feature on another node.

For example, you might want to look for clauses in which the verb in a Pred phrase has the same
number as the noun in a Subj phrase. Let's do it only for 1-word Pred and Sunj phrases.

clause
  phrase function=Pred
    =: v:word pdp=verb
    :=
  phrase function=Subj
    =: s:word pdp=subs nu=v.nu
    :=

The bit nu=v.nu is not possible currently.

We also would like to be able to say in the template above

s.gn = v.gn

(gn is the gender feature).
This is also not supported yet.

It would be nice to have both syntaxes working in TF search.

@dirkroorda dirkroorda changed the title Relatin feature values in search templates Relating feature values in search templates Jun 4, 2018
@dirkroorda dirkroorda added this to To do in evolution Dec 14, 2018
@dirkroorda dirkroorda moved this from To do to Incoming in evolution Dec 14, 2018
@codykingham
Copy link
Contributor

codykingham commented Dec 19, 2018

This would be a fantastic addition, which would allow for all kinds of new searches. I've occasionally needed it.

@dirkroorda
Copy link
Member Author

It has been reissued in #50 and implemented.

evolution automation moved this from Incoming to Done Jun 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
evolution
  
Done
Development

No branches or pull requests

2 participants