Class SentenceAnalyser


  • public class SentenceAnalyser
    extends Object
    Author:
    lichtenwald This class encapsulates the data that belong to the input sentence and the methods, which modify this data.
    • Constructor Detail

      • SentenceAnalyser

        public SentenceAnalyser()
    • Method Detail

      • getEEEList

        public ArrayList<de.julielab.jcore.ae.coordbaseline.main.EEEAnalyser> getEEEList()
      • getCompleteString

        public String getCompleteString()
      • getcoordinationLabelList

        public ArrayList<String> getcoordinationLabelList()
      • setPosTagList

        public void setPosTagList​(ArrayList<String> posTagList)
      • setEntityLabelList

        public void setEntityLabelList​(ArrayList<String> entityLabelList)
      • setEEEList

        public void setEEEList​(ArrayList<de.julielab.jcore.ae.coordbaseline.main.EEEAnalyser> EEEList)
      • setEEELabelList

        public void setEEELabelList​(ArrayList<String> EEELabelList)
      • setCompleteList

        public void setCompleteList​(ArrayList<String> completeList)
      • setCompleteString

        public void setCompleteString​(String completeString)
      • setcoordinationLabelList

        public void setcoordinationLabelList​(ArrayList<String> coordinationLabelList)
      • predictEEE

        public ArrayList<CoordinationToken> predictEEE()
        This method is used to compute the proposal of the EEE within a given sentence. Please note that before calling this method, the object must be instantiated using proper data (this data must contain words (tokens) and their entity labels. The approach is first to find the EEE within the given sentence and then to put this information in the coordinationTokenList using the method createEEELabelList.
        Returns:
        coordiantionTolenList ArrayList of CoordinationToken which represents the input sentence and contains EEE labels for every CoordinationToken.
      • predictConjuncts

        public ArrayList<CoordinationToken> predictConjuncts​(ArrayList<CoordinationToken> coordinationTokenList)
        This methos is used to predict the conjuncts of a given EEE
        Parameters:
        coordinationTokenList - ArrayList which represents the EEE
        Returns:
        coordinationTokenList ArrayList which is basically the input list but with additional information about conjuncts
      • predictEllipsis

        public String predictEllipsis​(ArrayList<CoordinationToken> coordinationTokenList)
        This methos is used to predict the resolved ellipsis of a given EEE
        Parameters:
        coordinationTokenList - ArrayList which represents the EEE
        Returns:
        resolvedEllipsis String which represents the resolved ellipsis in text form