MetaMap 파일은 다음과 같은 한 줄은 :정규식 MetaMap 자바에
mappings([map(-1000,[ev(-1000,'C0018017','Objective','Goals',[objective],[inpr],[[[1,1],[1,1],0]],yes,no)])]).
형식은 내가 나에게 문자열 'UMLS 개념을 제공 자바에서 정규식 쿼리를 실행하려면
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
)
]
)
]
).
로 설명 ID ', 의미 론적 유형 및 일치 맵 목록. RegEx가 올바른 도구입니까, 아니면 Java에서이 작업을 수행하는 가장 효율적인 방법은 무엇입니까?
좋은 사람. Btw : 10 월의 꿈은? – BalusC
메타 정규식 접근 방식이 마음에 듭니다! 지금까지, 나는 오직 String 상수 ('String number = "-? \\ d +"')를 사용하고 이들을 연결했다 ("... +"[ev ("+ number +", "+ ...')). 여전히 추악한 코드가 발생했습니다. –