Package edu.fiu.jtlex
Class AText
java.lang.Object
edu.fiu.jtlex.AText
- All Implemented Interfaces:
IAText
Default implementation of
IAText.- Author:
- arada002
-
Constructor Summary
ConstructorsConstructorDescriptionAText(String text, String rawText, Set<ILinguisticEvent> linguisticEvents, Set<ITemporalNode> temporalNodes, Set<IClause> clauses, Set<ICompoundTerm> compoundTerms, Set<ITerm> terms, Set<IRel> rels) -
Method Summary
Modifier and TypeMethodDescriptionReturns a set view of all the Clauses.Returns a set view of all the CompoundTerms.Returns a set view of all the LinguisticEvents.Returns the json document text.getRels()Returns a set view of all the Rels.Returns a set view of all the TemporalNodes.getTerms()Returns a set view of all the Terms.getText()Returns the article text without tags.
-
Constructor Details
-
AText
public AText(String text, String rawText, Set<ILinguisticEvent> linguisticEvents, Set<ITemporalNode> temporalNodes, Set<IClause> clauses, Set<ICompoundTerm> compoundTerms, Set<ITerm> terms, Set<IRel> rels)- Parameters:
text- article text may not benullrawText- complete document text may not benulllinguisticEvents- set of LinguisticEvent objects may not be empty /?temporalNodes- set of TemporalNode objects may not be emptyclauses- set of Clause objects /? may not be emptycompoundTerms- set of CompoundTerm objects may not be emptyterms- set of Term objects may not be emptyrels- set of Rel objects may not be empty *- Throws:
NullPointerException- if rawText or text argument isnullIllegalArgumentException- if rawText or text argument is all whitespace or an empty string if linguisticEvents, temporalNodes, rels, clauses, compoundTerms or terms argument is an empty set
-
-
Method Details
-
getText
Description copied from interface:IATextReturns the article text without tags. -
getRawText
Description copied from interface:IATextReturns the json document text.- Specified by:
getRawTextin interfaceIAText- Returns:
- raw text String
-
getLinguisticEvents
Description copied from interface:IATextReturns a set view of all the LinguisticEvents.- Specified by:
getLinguisticEventsin interfaceIAText- Returns:
- linguisticEvents
-
getTemporalNodes
Description copied from interface:IATextReturns a set view of all the TemporalNodes.- Specified by:
getTemporalNodesin interfaceIAText- Returns:
- temporalNodes
-
getClauses
Description copied from interface:IATextReturns a set view of all the Clauses.- Specified by:
getClausesin interfaceIAText- Returns:
- clauses
-
getCompoundTerms
Description copied from interface:IATextReturns a set view of all the CompoundTerms.- Specified by:
getCompoundTermsin interfaceIAText- Returns:
- CompoundTerms
-
getTerms
Description copied from interface:IATextReturns a set view of all the Terms. -
getRels
Description copied from interface:IATextReturns a set view of all the Rels.
-