Class SentenceAnalyser
- java.lang.Object
-
- de.julielab.jcore.ae.coordbaseline.main.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 Summary
Constructors Constructor Description SentenceAnalyser()SentenceAnalyser(ArrayList<CoordinationToken> coordinationTokenList)
-
Method Summary
-
-
-
Constructor Detail
-
SentenceAnalyser
public SentenceAnalyser()
-
SentenceAnalyser
public SentenceAnalyser(ArrayList<CoordinationToken> coordinationTokenList)
-
-
Method Detail
-
getEEEList
public ArrayList<de.julielab.jcore.ae.coordbaseline.main.EEEAnalyser> getEEEList()
-
getCompleteString
public String getCompleteString()
-
getCoordinationTokenList
public ArrayList<CoordinationToken> getCoordinationTokenList()
-
setEEEList
public void setEEEList(ArrayList<de.julielab.jcore.ae.coordbaseline.main.EEEAnalyser> EEEList)
-
setCompleteString
public void setCompleteString(String completeString)
-
setcoordinationLabelList
public void setcoordinationLabelList(ArrayList<String> coordinationLabelList)
-
setCoordinationTokenList
public void setCoordinationTokenList(ArrayList<CoordinationToken> coordinationTokenList)
-
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- ArrayListwhich 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- ArrayListwhich represents the EEE - Returns:
- resolvedEllipsis String which represents the resolved ellipsis in text form
-
-