Adds adjectival modifiers to all elements in the given path This is necessary so we can properly inspect the semantic negatives, which are often not in the path, but modify tokens in it, "*decreased* PTPN13 expression increases phosphorylation of EphrinB1"
global action for EventEngine
Gets a BioEventMention.
Gets a BioEventMention. If it is not a SimpleEvent it returns None. If it is a SimpleEvent it will return an entity that represents the product of the event: a complex for a binding and an entity with a PTM for any other kind of SimpleEvent.
Gets a trigger, an argument and a set of tokens to be ignored.
Gets a trigger, an argument and a set of tokens to be ignored. Returns the number of semantic negatives found in the shortest possible path between the trigger and the argument.
gets a polarized label and returns it flipped
retrieves the appropriate modification label
Test whether the given mention has a controller argument.
Gets a mention and checks that the controller and controlled are different.
Gets a mention and checks that the controller and controlled are different. Returns true if either the controller or the controlled is missing, or if they are both present and are distinct.
checks if a mention has a controller/controlled arguments with syntactic paths from the trigger that overlap
Converts mentions to biomentions.
Converts mentions to biomentions. They are returned as mentions but they are biomentions with grounding, modifications, etc
This action handles the creation of mentions from labels generated by the NER system.
This action handles the creation of mentions from labels generated by the NER system. Rules that use this action should run in an iteration following and rules recognizing "custom" entities. This action will only create mentions if no other mentions overlap with a NER label sequence.
Gets a sequence of mentions that are candidates for becoming Ubiquitination events and filters out the ones that have ubiquitin as a theme, since a ubiquitin can't be ubiquitinated.
Gets a sequence of mentions that are candidates for becoming Ubiquitination events and filters out the ones that have ubiquitin as a theme, since a ubiquitin can't be ubiquitinated. Events that have ubiquitin as a cause are also filtered out.
Gets a sequence of mentions and returns only the ones that have SimpleEvent controllers.
Gets a sequence of mentions and returns only the ones that have SimpleEvent controllers. If none is found, returns all mentions.
Returns true if both mentions are grounded to the same entity
Promote any Sites in the Modifications of a SimpleEvent argument to an event argument "site"
sorts a sequence of Mentions so that mentions with event controllers appear first
Gets RelationMentions that represent an EventSite, and attaches the site to the corresponding entities in-place.
Gets RelationMentions that represent an EventSite, and attaches the site to the corresponding entities in-place. Later, if these entities are matched as participants in an event, these sites will be "promoted" to that event and removed from the entity (see siteSniffer for details) This action always returns Nil and assumes that the arguments are already in the state.
Gets RelationMentions that represent a Mutant, and attaches the mutation to the corresponding event in-place.
Gets RelationMentions that represent a Mutant, and attaches the mutation to the corresponding event in-place. This action always returns Nil and assumes that the arguments are already in the state.
This action gets RelationMentions that represents a PTM, and attaches the modification to the target entity in place.
This action gets RelationMentions that represents a PTM, and attaches the modification to the target entity in place. This action modifies mentions in-place. This action always returns Nil, it assumes that the arguments are already in the state.
Gets a mention.
Gets a mention. If it is an EventMention with a polarized label and it is negated an odd number of times, returns a new mention with the label flipped. Or else it returns the mention unmodified
Unpacks RelationMentions into its arguments.
Unpacks RelationMentions into its arguments. A new BioTextBoundMention will be created for each argument with the labels of the original RelationMention. This is relying on Odin's behavior of assigning the same label of the RelationMention to its arguments captured with a pattern (not mention captures). This is required for RelationMentions whose arguments are used directly by subsequent rules. WARNING This method only handles RelationMentions. Other types of Mentions are deleted.