oday
09/30/2022, 12:58 PMfor (j in 0 until pdfReader.numberOfPages) {
extractedText += PdfTextExtractor.getTextFromPage(pdfReader, j + 1)
technologies.forEach { (key, values) ->
values.map {
if (extractedText.contains(it, ignoreCase = true)
|| extractedText.contains("${it}s", ignoreCase = true)
) {
occurrences[key] = occurrences.getOrDefault(key, 0) + 1
}
}
}
}
println(occurrences)
val person = extractedText.split(" ")[0].trim { it == ',' }
results[person] = occurrences
I would like to clear occurrences
after I’m done with it so that I can load it again with new values after I insert it into results[person]
but doing that is causing it to store an empty map into `results[person]`…oday
09/30/2022, 1:00 PMmkrussel
09/30/2022, 1:08 PMoccurrences.toMap()
) the map when you add it to results.oday
09/30/2022, 1:13 PModay
09/30/2022, 1:13 PModay
09/30/2022, 1:13 PM