Class Partitioner

java.lang.Object
edu.fiu.jtlex.data.Partitioner

public class Partitioner extends Object
Class used to partition an input TimeML temporal graph into main subgraph and subordinating subgraphs. TimeML graphs are split by trimming all instances of ILinks that are of type SLinkType and then reassembling the graphs using edges.
Author:
Emmanuel Garcia
  • Constructor Details

    • Partitioner

      public Partitioner()
  • Method Details

    • partitionGraph

      public static ArrayList<IGraph> partitionGraph​(IGraph timeMLGraph)
      Returns a list of partitioned subgraphs.

      This method takes a TimeML graph, removes all the Subordination type links, then reassembles the graph, and finally returns an array of the partitioned subgraphs.

      Parameters:
      timeMLGraph - the main TimeML graph to be partitioned.
      Returns:
      an ArrayList<IGraph> of partitioned subgraphs
    • classifyGraphs

      public static ArrayList<IGraph> classifyGraphs​(ArrayList<IGraph> graphs)
      Finds the graph with the most nodes and classifies it as a MainGraph and set the others to a subordination graph.
      Parameters:
      graphs - the list of graphs to be classified.
      Returns:
      the classified graphs.
    • partitionLinks

      public static Set<ILink> partitionLinks()
      This method returns the set of partition links (solo subordination timelinks).

      These links are obtained from partitioning a TimeML graph. This method can only be used AFTER partitionGraph(IGraph) has been used to partition a graph.

      Returns:
      set of partition links (solo subordination timelinks).