GATE annotation counting -
i trying figure out way of counting annotations in gate e.g. if have annotations occurring multiple times in text document , if want count it, there sort of plugin can me?
thanks
another option use groovy script. code here:
sum = 0 docs.findall{ // documents loaded def filteredannots = it.getannotations("filtered") num = filteredannots["anatomy"].size() sum += num println it.name + " " + num // or print file here } println "total:" + " " + sum
you can put code in groovy plugin (pr) , run part of pipeline, described here.
Comments
Post a Comment