szte.csd.baseline
Class SentenceRemover
java.lang.Object
szte.csd.baseline.SentenceRemover
- All Implemented Interfaces:
- RuleBasedCSD
public class SentenceRemover
- extends java.lang.Object
- implements RuleBasedCSD
The "content shifted sentence baseline".
It looks for content shifting phrases and if a sentences contains any, the whole sentence will be regarded as "altered"
The phrases were collected from Chapman et al. (2007);Light et al. (2004); Vincze et al. (2008);Farkas and Szarvas (2008) and Farkas et al. (2009)
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SentenceRemover
public SentenceRemover(java.lang.String task)
isAltered
public boolean isAltered(Sentence sent,
int pos)
- Specified by:
isAltered
in interface RuleBasedCSD
- Parameters:
sent
- sentencepos
- the position of the token in question
- Returns:
- whether the token is content shifted