Package edu.fiu.jtlex

Interface IJsonParser

All Known Implementing Classes:
JsonParser

public interface IJsonParser
Author:
ccaro014, arada002
  • Method Summary

    Modifier and Type
    Method
    Description
    A parser method that returns document text without annotations.
    parseClause​(String clauseString)
    A parser method which takes the string input representing a ClauseString and parses it to get the Clause object.
    parseCompoundTerm​(String compoundTermString)
    A parser method which takes the string input representing a CompoundTerm and parses it to get the CompoundTerm object.
    The parse method which takes the input stream and returns an IAText object.
    parseLinguisticEvent​(String linguisticEventString)
    A parser method which takes the string input representing a LinguisticEvent and parses it to get the LinguisticEvent object.
    parseRel​(String relString)
    A parser method which takes the string input representing a RelString and parses it to get the Rel object
    parseTemporalNode​(String temporalString)
    A parser method which takes the string input representing a TemporalNode and parses it to get the TemporalNode object.
    parseTerm​(String termString)
    A parser method which takes the string input representing a TermString and parses it to get the Term oject.
  • Method Details

    • parseJson

      IAText parseJson​(FileInputStream json) throws FileNotFoundException
      The parse method which takes the input stream and returns an IAText object.
      Parameters:
      json - input stream to be parsed
      Returns:
      IAText object AText object representation of the input stream
      Throws:
      FileNotFoundException
    • parseLinguisticEvent

      ILinguisticEvent parseLinguisticEvent​(String linguisticEventString)
      A parser method which takes the string input representing a LinguisticEvent and parses it to get the LinguisticEvent object.
      Parameters:
      linguisticEventString -
      Returns:
      linguisticEvent object
    • parseTemporalNode

      ITemporalNode parseTemporalNode​(String temporalString)
      A parser method which takes the string input representing a TemporalNode and parses it to get the TemporalNode object.
      Parameters:
      temporalString -
      Returns:
      temporalNode object
    • parseCompoundTerm

      ICompoundTerm parseCompoundTerm​(String compoundTermString)
      A parser method which takes the string input representing a CompoundTerm and parses it to get the CompoundTerm object.
      Parameters:
      compoundTermString -
      Returns:
      compoundTerm object
    • parseTerm

      ITerm parseTerm​(String termString)
      A parser method which takes the string input representing a TermString and parses it to get the Term oject.
      Parameters:
      termString -
      Returns:
      term object
    • parseClause

      IClause parseClause​(String clauseString)
      A parser method which takes the string input representing a ClauseString and parses it to get the Clause object.
      Parameters:
      clauseString -
      Returns:
      clause object
    • parseRel

      IRel parseRel​(String relString)
      A parser method which takes the string input representing a RelString and parses it to get the Rel object
      Parameters:
      relString -
      Returns:
      relation object
    • getDocumentText

      String getDocumentText​(String node)
      A parser method that returns document text without annotations.
      Parameters:
      node - string
      Returns:
      document text string