org.jscience.ml.tigerxml.tools
Class SyncMMAX

java.lang.Object
  extended by org.jscience.ml.tigerxml.tools.SyncMMAX

public class SyncMMAX
extends java.lang.Object

Provides static methods for synchronizing and converting data structures between the org.jscience.ml.tigerxml and MMAX.

(European Media Laboratory, NLP Group). This class is for static use.


Constructor Summary
SyncMMAX()
           
 
Method Summary
static java.lang.String condenseSpan(java.lang.String inSpan)
          Condense a given span (String) and return the condensed span (String).
static boolean isMarkable(GraphNode node)
          Defines the concept of a markable according to the MMAX guidelines in terms of NEGRA/TIGER syntax.
static void main(java.lang.String[] args)
          Main: For testing purposes.
static java.util.ArrayList parseSpan(java.lang.String span)
          Expand a given span (String) and return an ArrayList containing all ID Strings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SyncMMAX

public SyncMMAX()
Method Detail

parseSpan

public static final java.util.ArrayList parseSpan(java.lang.String span)
Expand a given span (String) and return an ArrayList containing all ID Strings. Example: "s1_1..s1_3,s1_5" --> ["s1_1", "s1_2", "s1_3", "s1_5"]

Parameters:
span - The (possibly condensed) String representation of the span.
Returns:
An ArrayList containing all ID Strings.

condenseSpan

public static final java.lang.String condenseSpan(java.lang.String inSpan)
Condense a given span (String) and return the condensed span (String). Example: "s1_1,s1_2,s1_3,s1_4,s1_5" --> "s1_1..s1_5"

Parameters:
inSpan - The String representation of the span to be condensed.
Returns:
The condensed span String.

isMarkable

public static final boolean isMarkable(GraphNode node)
Defines the concept of a markable according to the MMAX guidelines in terms of NEGRA/TIGER syntax. A markable is characterized as follows: NP-like nodes are markables. Appositions are excluded from being markables. A terminal that is an attributive pronoun is a markable If a noun or a substituting pronoun that is not a relative pronoun is not immediately dominated by an NP-like node other than CNP, then it is a markable.

Parameters:
node - The node to be classified as a Markable/not a Markable.
Returns:
True if node is a Markable according to the MMAX guidelines.

main

public static void main(java.lang.String[] args)
Main: For testing purposes.

Parameters:
args - Test input (span)