MetaMap文件有如下行:正則表達式MetaMap在Java中
mappings([map(-1000,[ev(-1000,'C0018017','Objective','Goals',[objective],[inpr],[[[1,1],[1,1],0]],yes,no)])]).
格式爲
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
)
]
)
]
).
我想運行在Java中的正則表達式查詢,讓我的琴絃「UMLS概念解釋ID「,語義類型和匹配地圖列表。 RegEx是正確的工具,還是在Java中完成此項工作的最有效方式?
不錯的。順便說一句:10月份什麼夢想工作? – BalusC 2010-04-28 12:09:34
我喜歡你的meta-regex方法!到目前爲止,我只使用了命名的字符串常量('String number =「 - ?\\ d +」')並將它們連接起來('... +「[ev(」+ number +「,」+ ...'),但那仍然導致醜陋的代碼。 – 2010-04-28 16:27:40