Added support for the GraphFormulaPatternMatcher - #57
Merged
Conversation
Eszti
reviewed
May 20, 2022
| option = st.selectbox("Choose from the rules", st.session_state.sens) | ||
| G, _ = default_pn_to_graph(option.split(";")[0]) | ||
| text_G, _ = default_pn_to_graph(option.split(";")[0]) | ||
| first_option = option.split(";")[0] |
Collaborator
There was a problem hiding this comment.
Can you please provide an example for a pattern that it would match?
Does this matcher always apply, or do I have to call POTATO in a specific way?
Collaborator
Author
There was a problem hiding this comment.
This would match any penman as well as any command given with the command(penman1, penman2) formula.
For example, the following rule:
path((u_800 / like :nsubj (u_1 / I)),(u_120 / flower))
Would match any graph where the two subgraphs are present and there is a directed path from 'like' to 'flower'.
Currently, there are 3 commands supported: path, undirected and any integer (e.g. 2 and 4 are valid commands).
I've set this as the default, but we can obviously change it.
Eszti
approved these changes
May 20, 2022
adaamko
approved these changes
May 20, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added support, but also set is as the default option.