RegEx for MetaMap in Java

Posted by Christian on Stack Overflow See other posts from Stack Overflow or by Christian
Published on 2010-04-28T11:17:46Z Indexed on 2010/04/28 11:23 UTC
Read the original article Hit count: 434

Filed under:
|
|
|

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?

© Stack Overflow or respective owner

Related posts about regex

Related posts about java