Type | Name and description |
---|---|
static int |
currentLine |
static def |
endPunctuationList endPunctuationList the list of punctuation symbols that can be removed from the ends of words |
static int |
errorState |
static String |
initMRReadFile |
List<WCLine> |
lineBuffer |
int |
lines |
static def |
startPunctuationList startPunctuationList the list of punctuation symbols that can be removed from the start of words |
Constructor and description |
---|
WCReadFile
() |
Type Params | Return Type | Name and description |
---|---|---|
|
def |
getNextLine() |
|
int |
initMRReadFile(List d) |
|
static def |
processLine(def line) processLine takes a line of text which is split into words using tokenize(' ') |
|
static def |
removePunctuation(def w) removePunctuation removes any punctuation characters from the start and end of a word |
endPunctuationList the list of punctuation symbols that can be removed from the ends of words
startPunctuationList the list of punctuation symbols that can be removed from the start of words
Demonstrations of the Use of the Groovy Parallel Patterns Library generated 18-09-2017 by Jon Kerridge, Edinburgh Napier University - j.kerridge@napier.ac.uk