Package edu.fiu.jtlex

Class AText

java.lang.Object
edu.fiu.jtlex.AText
All Implemented Interfaces:
IAText

public class AText extends Object implements IAText
Default implementation of IAText.
Author:
arada002
  • 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 be null
      rawText - complete document text may not be null
      linguisticEvents - set of LinguisticEvent objects may not be empty /?
      temporalNodes - set of TemporalNode objects may not be empty
      clauses - set of Clause objects /? may not be empty
      compoundTerms - set of CompoundTerm objects may not be empty
      terms - set of Term objects may not be empty
      rels - set of Rel objects may not be empty *
      Throws:
      NullPointerException - if rawText or text argument is null
      IllegalArgumentException - 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

      public String getText()
      Description copied from interface: IAText
      Returns the article text without tags.
      Specified by:
      getText in interface IAText
      Returns:
      text String
    • getRawText

      public String getRawText()
      Description copied from interface: IAText
      Returns the json document text.
      Specified by:
      getRawText in interface IAText
      Returns:
      raw text String
    • getLinguisticEvents

      public Set<ILinguisticEvent> getLinguisticEvents()
      Description copied from interface: IAText
      Returns a set view of all the LinguisticEvents.
      Specified by:
      getLinguisticEvents in interface IAText
      Returns:
      linguisticEvents
    • getTemporalNodes

      public Set<ITemporalNode> getTemporalNodes()
      Description copied from interface: IAText
      Returns a set view of all the TemporalNodes.
      Specified by:
      getTemporalNodes in interface IAText
      Returns:
      temporalNodes
    • getClauses

      public Set<IClause> getClauses()
      Description copied from interface: IAText
      Returns a set view of all the Clauses.
      Specified by:
      getClauses in interface IAText
      Returns:
      clauses
    • getCompoundTerms

      public Set<ICompoundTerm> getCompoundTerms()
      Description copied from interface: IAText
      Returns a set view of all the CompoundTerms.
      Specified by:
      getCompoundTerms in interface IAText
      Returns:
      CompoundTerms
    • getTerms

      public Set<ITerm> getTerms()
      Description copied from interface: IAText
      Returns a set view of all the Terms.
      Specified by:
      getTerms in interface IAText
      Returns:
      terms
    • getRels

      public Set<IRel> getRels()
      Description copied from interface: IAText
      Returns a set view of all the Rels.
      Specified by:
      getRels in interface IAText
      Returns:
      Rels