Type | Name and description |
---|---|
static int |
N |
static String |
create |
static int |
currentInstance |
static def |
endPunctuationList endPunctuationList the list of punctuation symbols that can be removed from the ends of words |
static String |
fileName |
static String |
finalise |
static String |
indexer |
static String |
indicesMap |
static String |
init |
static def |
intValueList |
static String |
outFileName |
def |
sequenceList |
static def |
startPunctuationList startPunctuationList the list of punctuation symbols that can be removed from the start of words |
int |
strLen |
def |
valueIndicesMap |
static String |
valueList |
static def |
wordBuffer |
static int |
wordCount |
def |
wordMap |
static String |
wordsMap |
Constructor and description |
---|
ConcordanceData
() |
Type Params | Return Type | Name and description |
---|---|---|
|
static def |
charSum(def w) charSum transforms a word into a single integer based upon the sum of the ASCII characters that make up the word |
|
int |
createInstance(List d) |
|
int |
createIntValueList(List p) |
|
int |
createValueIndicesMap(List p) |
|
int |
createWordMap(List p) |
|
int |
finalise(List l) |
|
int |
indexer(List p) |
|
int |
initClass(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
charSum transforms a word into a single integer based upon the sum of the ASCII characters that make up the word
w
- String containing word to be transformed into an integerprocessLine takes a line of text which is split into words using tokenize(' ')
line
- a line that has been read from a fileDemonstrations of the Use of the Groovy Parallel Patterns Library generated 18-09-2017 by Jon Kerridge, Edinburgh Napier University - j.kerridge@napier.ac.uk