Uses of Class
edu.upf.taln.dri.lib.model.ext.SentenceSelectorENUM
-
Packages that use SentenceSelectorENUM Package Description edu.upf.taln.dri.lib.model edu.upf.taln.dri.lib.model.ext edu.upf.taln.dri.lib.model.util edu.upf.taln.dri.lib.model.util.serializer -
-
Uses of SentenceSelectorENUM in edu.upf.taln.dri.lib.model
Methods in edu.upf.taln.dri.lib.model with parameters of type SentenceSelectorENUM Modifier and Type Method Description DependencyGraph
Document. extractDocumentGraph(SentenceSelectorENUM sentenceSel)
Get the graph representing a portion of a document.DependencyGraph
DocumentImpl. extractDocumentGraph(SentenceSelectorENUM sentenceSel)
List<Sentence>
Document. extractSentences(SentenceSelectorENUM sentenceSel)
Load the list of sentences of the document, ordered by their occurrence in the document.List<Sentence>
DocumentImpl. extractSentences(SentenceSelectorENUM sentenceSel)
-
Uses of SentenceSelectorENUM in edu.upf.taln.dri.lib.model.ext
Methods in edu.upf.taln.dri.lib.model.ext that return SentenceSelectorENUM Modifier and Type Method Description static SentenceSelectorENUM
SentenceSelectorENUM. valueOf(String name)
Returns the enum constant of this type with the specified name.static SentenceSelectorENUM[]
SentenceSelectorENUM. values()
Returns an array containing the constants of this enum type, in the order they are declared. -
Uses of SentenceSelectorENUM in edu.upf.taln.dri.lib.model.util
Methods in edu.upf.taln.dri.lib.model.util with parameters of type SentenceSelectorENUM Modifier and Type Method Description static String
DocParse. getDocumentROSasCSVstring(Document doc, SentenceSelectorENUM sentenceSelector)
This method generates "NODE -> SUBJECT -> VERB_NODE" and "NODE -> OBJECT -> VERB_NODE" and "CAUSE_NODE -> CAUSE -> EFFECT_NODE" triples.
Because of coreference resolution, the non verb NODES (subjects and objects of SUBJECT / OBJECT triples) can represent the aggregation, performed by means of a coreference resolutor, of several nodes coming from several sentence.
In case a non verb NODE is the rsult of the aggregation of nodes by coreference resolutions, the text / name of the NODE is the sequence of the texts / names of the nodes aggregated, separated by three underscores (name1___name2___name3).static String
DocParse. getSentencesCSVstring(Document doc, SentenceSelectorENUM sentenceSelector)
This method will return a CSV with a number of rows equal to the number of sentences in the document.
The first CSV column is the document-unambiguous ID of the sentence as referred by the field NODE_SENT_ID of the ROS CSV of the ROS CSV generated by the method getDocumentROSasCSVstring(edu.upf.taln.dri.lib.model.Document doc, SentenceSelectorENUM sentenceSelector) of this class.
The second column is the space separated list of tokens of the sentence.
The third column is the Rhetorical Class of the sentence.
The fourth column is the name of the section that contains the sentence (if any).
The fifth column is the nesting level of the section that contains the sentence (if any).static String
DocParse. getTokenExpressionCSVstring(Document doc, SentenceSelectorENUM sentenceSelector)
This method will return a CSV withstatic String
DocParse. getTokenROSasCSVstring(Document doc, SentenceSelectorENUM sentenceSelector, DocGraphTypeENUM graphType)
Deprecated.IMPORTANT: this method is deprecated in favor of the methodgetDocumentROSasCSVstring
that generates a more compact and useful ROS -
Uses of SentenceSelectorENUM in edu.upf.taln.dri.lib.model.util.serializer
Methods in edu.upf.taln.dri.lib.model.util.serializer with parameters of type SentenceSelectorENUM Modifier and Type Method Description static String
JSONgenerator. getSentencesJSON(Document doc, SentenceSelectorENUM sentenceSel, boolean includeTokens, boolean includeBabelnetSynsets)
Return the JSON serialization of a set of sentences of the document.
A list of sentence JSON object is returned; the order of the elements of this list reflects the order of occurrence of each sentence in the document.
Each sentence JSON object is compliant with the class the structure modeled by theSentenceJSON
class.
-