Package edu.fiu.jtlex
Interface IJsonParser
- All Known Implementing Classes:
JsonParser
public interface IJsonParser
- Author:
- ccaro014, arada002
-
Method Summary
Modifier and TypeMethodDescriptiongetDocumentText(String node)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.parseJson(FileInputStream json)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.A parser method which takes the string input representing a RelString and parses it to get the Rel objectparseTemporalNode(String temporalString)A parser method which takes the string input representing a TemporalNode and parses it to get the TemporalNode object.A parser method which takes the string input representing a TermString and parses it to get the Term oject.
-
Method Details
-
parseJson
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
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
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
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
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
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
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
A parser method that returns document text without annotations.- Parameters:
node- string- Returns:
- document text string
-