Class TigerXMLDocument

java.lang.Object
org.episteme.social.linguistics.loaders.tigerxml.core.TigerXMLDocument
All Implemented Interfaces:
Serializable

public class TigerXMLDocument extends Object implements Serializable
Represents the TIGER-XML source document of a corpus.
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
See Also:
  • Constructor Details

    • TigerXMLDocument

      public TigerXMLDocument(String corpusFileName)
      Creates a new TigerXMLDocument object.
      Parameters:
      corpusFileName - path to the corpus file
    • TigerXMLDocument

      public TigerXMLDocument(String corpusFileName, int verbosity)
      Creates a new TigerXMLDocument object.
      Parameters:
      corpusFileName - path to the corpus file
      verbosity - logging verbosity level
  • Method Details

    • getDocumentRoot

      public Element getDocumentRoot()
      Returns the DOM root element of the parsed document.
      Returns:
      the root Element
    • getFileName

      public String getFileName()
      Returns the source file name.
      Returns:
      the absolute path to the XML file
    • reset

      public void reset()
      Resets the document state, clearing the DOM tree.
    • getVerbosity

      public int getVerbosity()
      Gets the currently set level of verbosity of this instance. The higher the value the more information is written to stderr.
      Returns:
      The level of verbosity.
    • setVerbosity

      public void setVerbosity(int verbosity)
      Sets the currently set level of verbosity of this instance. The higher the value the more information is written to stderr.
      Parameters:
      verbosity - The level of verbosity.