modnlp.tc.parser
public class LingspamEmailParser extends Parser
Constructor and Description |
---|
LingspamEmailParser() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getCategory(java.lang.String fname)
In lingspam, the category (spam or legit) is not stored with
the text but given by the file name ('spmmsg*.txt denote spam.)
|
static void |
main(java.lang.String[] args)
main method for test purposes.
|
void |
parse()
parse: Set up parser object, perform parsing
In lingspam, the category (spam or legit) is not stored with
the text but given by the file name ('spmmsg*.txt denote spam.)
|
getParsedCorpus, setFilename
public void parse()
parse
in class Parser
NewsParser
public static java.lang.String getCategory(java.lang.String fname)
public static void main(java.lang.String[] args)