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, setFilenamepublic void parse()
parse in class ParserNewsParserpublic static java.lang.String getCategory(java.lang.String fname)
public static void main(java.lang.String[] args)