12.06.2015 Views

The Annoyance Filter.pdf - Fourmilab

The Annoyance Filter.pdf - Fourmilab

The Annoyance Filter.pdf - Fourmilab

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

188 HEADER INCLUDE FILES ANNOYANCE-FILTER §241<br />

241. <strong>The</strong> following options are referenced in class definitions and must be placed in the 〈 Global<br />

variables 226 〉 section so they’ll be declared prior to references to them.<br />

〈 Global variables 226 〉 +≡<br />

static bool verbose = false ; /∗ Print verbose processing information ∗/<br />

#ifdef TYPE_LOG<br />

static ofstream typeLog ("/tmp/typelog.txt");<br />

#endif<br />

static string pDiagFilename = ""; /∗ Parser diagnostic file name ∗/<br />

static string transcriptFilename = ""; /∗ Message transcript file name ∗/<br />

static bool pTokenTrace = false ; /∗ Include detailed token trace in pDiagFilename output ? ∗/<br />

static unsigned int maxTokenLength = 64, minTokenLength = 1;<br />

/∗ Minimum and maximum token length limits ∗/<br />

static unsigned int streamMaxTokenLength = 64, streamMinTokenLength = 5;<br />

/∗ Minimum and maximum byte stream token length limits ∗/<br />

static bool singleDictionaryRead = true ;<br />

/∗ Can we optimise probability computation after dictionary import ? ∗/<br />

static unsigned int phraseMin = 1, phraseMax = 1;<br />

/∗ Minimum and maximum phrase length in words ∗/<br />

static unsigned int phraseLimit = 48; /∗ Maximum phrase length ∗/<br />

static unsigned int autoPrune = 0;<br />

/∗ Automatic prune based on dictionary memory consumption ∗/<br />

static bool popProxyTrace = false ; /∗ Should POP3 server write trace to cerr ? ∗/<br />

static bool sloppyheaders = false ; /∗ Accept messages with malformed MIME headers ∗/

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!