public Lexicon load(String fileName){
  try {
    JAXBContext context=JAXBContext.newInstance("vn.vitk.tok.jaxb");
    Unmarshaller unmarshaller=context.createUnmarshaller();
    Object object=unmarshaller.unmarshal(new FileInputStream(fileName));
    if (object instanceof N) {
      N n=(N)object;
      root=loadNode(n);
      return this;
    }
  }
 catch (  FileNotFoundException e) {
    e.printStackTrace();
  }
catch (  JAXBException e) {
    e.printStackTrace();
  }
  return null;
}

public Lexicon load ( String fileName ) { try { JAXBContext context = JAXBContext . newInstance ( "vn.vitk.tok.jaxb" ) ; Unmarshaller unmarshaller = context . createUnmarshaller ( ) ; Object object = unmarshaller . unmarshal ( new FileInputStream ( fileName ) ) ; if ( object instanceof N ) { N n = ( N ) object ; root = loadNode ( n ) ; return this ; } } catch ( FileNotFoundException e ) { e . printStackTrace ( ) ; } catch ( JAXBException e ) { e . printStackTrace ( ) ; } return null ; }
unmarshals dictionary from an xml file .
