Package edu.fiu.jtlex

Class Clause

java.lang.Object
edu.fiu.jtlex.Clause
Record Components:
id - A unique ID given to parts of speech
predicatePosition - Initial position of the predicate within the clause
begin - Position of first character of clause
end - Position of last character in the clause
text - The clause text
All Implemented Interfaces:
IANode, IClause

public class Clause extends Object implements IClause
This class represents the clause part of speech in every sentence
  • Constructor Summary

    Constructors
    Constructor
    Description
    Clause​(int id, int predicatePosition, int begin, int end, String text)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Position of the first character in the clause
    int
    Position of the last character in the clause
    int
    unique ID given to a clause object
    int
    The start position of the of the first character in predicate
    Context of the clause

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Clause

      public Clause​(int id, int predicatePosition, int begin, int end, String text)
  • Method Details

    • getId

      public int getId()
      Description copied from interface: IClause
      unique ID given to a clause object
      Specified by:
      getId in interface IANode
      Specified by:
      getId in interface IClause
      Returns:
      id
    • getPredicatePosition

      public int getPredicatePosition()
      Description copied from interface: IClause
      The start position of the of the first character in predicate
      Specified by:
      getPredicatePosition in interface IClause
      Returns:
      predicatePosition
    • getBegin

      public int getBegin()
      Description copied from interface: IClause
      Position of the first character in the clause
      Specified by:
      getBegin in interface IANode
      Specified by:
      getBegin in interface IClause
      Returns:
      begin
    • getEnd

      public int getEnd()
      Description copied from interface: IClause
      Position of the last character in the clause
      Specified by:
      getEnd in interface IANode
      Specified by:
      getEnd in interface IClause
      Returns:
      end
    • getText

      public String getText()
      Description copied from interface: IClause
      Context of the clause
      Specified by:
      getText in interface IANode
      Specified by:
      getText in interface IClause
      Returns:
      text