Package edu.upf.taln.dri.lib.model.ext
Class CandidateTermOccImpl
- java.lang.Object
-
- edu.upf.taln.dri.lib.model.BaseDocumentElem
-
- edu.upf.taln.dri.lib.model.ext.CandidateTermOccImpl
-
- All Implemented Interfaces:
CandidateTermOcc
public class CandidateTermOccImpl extends BaseDocumentElem implements CandidateTermOcc
IMPORTANT: Never instantiate directly this class!
A term mined from the document.
-
-
Field Summary
-
Fields inherited from class edu.upf.taln.dri.lib.model.BaseDocumentElem
cacheManager
-
-
Constructor Summary
Constructors Constructor Description CandidateTermOccImpl(DocCacheManager cacheManager)
CandidateTermOccImpl(DocCacheManager cacheManager, Integer id)
CandidateTermOccImpl(DocCacheManager cacheManager, Integer id, String text, Integer sentenceId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
asString(boolean compactOutput)
String representation of the objectInteger
getId()
Document-wide unambiguous candidate term occurrence IdInteger
getInSentenceId()
String
getMatchedPattern()
The actual POS pattern that characterizes the candidate term occurrenceString
getRegexPattern()
The POS pattern regular expression used to spot this candidate term occurrenceInteger
getSentenceIdWithTerm()
Get the id of the sentence that includes the candidate term occurrenceString
getText()
The candidate term occurrence textvoid
setId(Integer id)
void
setInSentenceId(Integer inSentenceId)
void
setMatchedPattern(String matchedPattern)
void
setRegexPattern(String regexPattern)
void
setText(String text)
-
Methods inherited from class edu.upf.taln.dri.lib.model.BaseDocumentElem
getCacheManager, setCacheManager
-
-
-
-
Constructor Detail
-
CandidateTermOccImpl
public CandidateTermOccImpl(DocCacheManager cacheManager)
-
CandidateTermOccImpl
public CandidateTermOccImpl(DocCacheManager cacheManager, Integer id)
-
CandidateTermOccImpl
public CandidateTermOccImpl(DocCacheManager cacheManager, Integer id, String text, Integer sentenceId)
-
-
Method Detail
-
getId
public Integer getId()
Description copied from interface:CandidateTermOcc
Document-wide unambiguous candidate term occurrence Id- Specified by:
getId
in interfaceCandidateTermOcc
- Returns:
- document-wide unambiguous term Id
-
setId
public void setId(Integer id)
-
getText
public String getText()
Description copied from interface:CandidateTermOcc
The candidate term occurrence text- Specified by:
getText
in interfaceCandidateTermOcc
- Returns:
- term text
-
setText
public void setText(String text)
-
getInSentenceId
public Integer getInSentenceId()
-
setInSentenceId
public void setInSentenceId(Integer inSentenceId)
-
getRegexPattern
public String getRegexPattern()
Description copied from interface:CandidateTermOcc
The POS pattern regular expression used to spot this candidate term occurrence- Specified by:
getRegexPattern
in interfaceCandidateTermOcc
- Returns:
-
setRegexPattern
public void setRegexPattern(String regexPattern)
-
getMatchedPattern
public String getMatchedPattern()
Description copied from interface:CandidateTermOcc
The actual POS pattern that characterizes the candidate term occurrence- Specified by:
getMatchedPattern
in interfaceCandidateTermOcc
- Returns:
-
setMatchedPattern
public void setMatchedPattern(String matchedPattern)
-
getSentenceIdWithTerm
public Integer getSentenceIdWithTerm()
Description copied from interface:CandidateTermOcc
Get the id of the sentence that includes the candidate term occurrence- Specified by:
getSentenceIdWithTerm
in interfaceCandidateTermOcc
- Returns:
-
asString
public String asString(boolean compactOutput)
Description copied from interface:CandidateTermOcc
String representation of the object- Specified by:
asString
in interfaceCandidateTermOcc
- Returns:
-
-