gate.util
Class Scratch

java.lang.Object
  extended bygate.util.Scratch

public class Scratch
extends Object

A scratch pad for experimenting.


Nested Class Summary
static class Scratch.ContentPropertyReader
           
 
Constructor Summary
Scratch()
           
 
Method Summary
static void createIndex()
          Generates an index for a corpus in a datastore on Valy's computer in order to have some test data.
static void dumpGuiState()
          ***** Failed ***** attempt to serialise whole gui state - various swing components don't like to be serialised :-(.
static void exitTimeHook()
          Example of using an exit-time hook.
static void main(String[] args)
           
 void runNerc()
          Run NERC and print out the various stages (doesn't actually use Nerc but the individual bits), and serialise then deserialise the NERC system.
static void tokeniseFile(File file)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Scratch

public Scratch()
Method Detail

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception

exitTimeHook

public static void exitTimeHook()
Example of using an exit-time hook.


dumpGuiState

public static void dumpGuiState()
***** Failed ***** attempt to serialise whole gui state - various swing components don't like to be serialised :-(. might be worth trying again when jdk1.4 arrives.


runNerc

public void runNerc()
             throws Exception
Run NERC and print out the various stages (doesn't actually use Nerc but the individual bits), and serialise then deserialise the NERC system.

Throws:
Exception

createIndex

public static void createIndex()
                        throws Exception
Generates an index for a corpus in a datastore on Valy's computer in order to have some test data.

Throws:
Exception

tokeniseFile

public static void tokeniseFile(File file)
                         throws Exception
Parameters:
file - a TXT file containing the text
Throws:
Exception