MetaMap files have following lines:
mappings([map(-1000,[ev(-1000,'C0018017','Objective','Goals',[objective],[inpr],[[[1,1],[1,1],0]],yes,no)])]).
The format is explained as
mappings(
[map(negated overall score for this mapping,
[ev(negated candidate score,'UMLS concept ID','UMLS concept','preferred name for concept - may or may not be different',
[matched word or words lowercased that this candidate matches in the phrase - comma separated list],
[semantic type(s) - comma separated list],
[match map list - see below],candidate involved with head of phrase - yes or no,
is this an overmatch - yes or no
)
]
)
]
).
I want to run a RegEx query in java that gives me the Strings 'UMLS concept ID', semantic type and match map list.
Is RegEx the right tool or what is the most efficent way to accomplish this in Java?