edu.upenn.cis.pdtb.xpath
Class IsAdverbialFunction

java.lang.Object
  extended byedu.upenn.cis.pdtb.xpath.IsAdverbialFunction
All Implemented Interfaces:
org.jaxen.Function

public class IsAdverbialFunction
extends java.lang.Object
implements org.jaxen.Function

Filter for adverbial connectives. This function has the signature:

  boolean is-adv()
  
Returns true iff the context node is an explicit relation and the connHead attribute matches the regex:
 .*(instead|otherwise|therefore|as a result|nevertheless|^then|on the other hand|however|in fact|
 further|furthermore|indeed|for example|though|yet|so$|on the contrary|conversely|consequently|
 besides|nonetheless|afterwards|finally|by contrast|in sum|simultaneously|in addition|accordingly|
 thus|overall|in the meantime|meanwhile|in other words|still|previously|as an alternative|specifically|
 in particular|hence|earlier|later|regardless|for instance|in the end|on the other side|by comparison|
 alternatively|in short|rather|ultimately|moreover|likewise|next|similarly|in contrast|thereafter|by then|
 additionally|also|on the whole|plus as well|separately|in turn).*
 

Since:
0.2.8
Author:
nikhild

Field Summary
static java.util.regex.Pattern AdverbialConnPattern
           
 
Constructor Summary
IsAdverbialFunction()
           
 
Method Summary
 java.lang.Object call(org.jaxen.Context context, java.util.List args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AdverbialConnPattern

public static final java.util.regex.Pattern AdverbialConnPattern
Constructor Detail

IsAdverbialFunction

public IsAdverbialFunction()
Method Detail

call

public java.lang.Object call(org.jaxen.Context context,
                             java.util.List args)
                      throws org.jaxen.FunctionCallException
Specified by:
call in interface org.jaxen.Function
Throws:
org.jaxen.FunctionCallException