public class Corpus extends Object
Usage:
ILoggingEvent[] eventArray = Corpus.makeStandardCorpus();
if you wish to dump the events into a file, say "/corpus.log" :
For the model behind the corpus, refer to Corpus.dump(eventArray, "/corpus.log");
CorpusModel
.
Modifier and Type | Field and Description |
---|---|
static int |
STANDARD_CORPUS_SIZE |
Constructor and Description |
---|
Corpus() |
Modifier and Type | Method and Description |
---|---|
static void |
dump(ILoggingEvent[] eventArray,
String targetFile)
Dump the events passed as argument into the file named targetFile.
|
static List<String> |
getStandatdCorpusWordList() |
static ILoggingEvent[] |
make(CorpusModel corpusModel,
int n,
boolean withCallerData) |
static ILoggingEvent[] |
makeStandardCorpus()
Make a standard corpus.
|
public static final int STANDARD_CORPUS_SIZE
public Corpus()
public static List<String> getStandatdCorpusWordList() throws IOException
IOException
public static ILoggingEvent[] makeStandardCorpus() throws IOException
STANDARD_CORPUS_SIZE
elements.IOException
public static ILoggingEvent[] make(CorpusModel corpusModel, int n, boolean withCallerData)
public static void dump(ILoggingEvent[] eventArray, String targetFile) throws IOException
eventArray
- targetFile
- IOException
Copyright © 2005–2018 QOS.ch. All rights reserved.