modnlp.tc.parser
public class P20newsgroupsParser extends Parser
Constructor and Description |
---|
P20newsgroupsParser() |
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
The category not stored with the text but given by the path name
(e.g.
|
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)