Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我尝试在 UIMA RUTA SCRIPT 中使用 Regex 匹配“mmHg”,但它不匹配。我使用了以下规则:
W{REGEXP("mmHg")->MARK(ME_UNITSPACING)}; ANY{REGEXP("mmHg")->MARK(ME_UNITSPACING)}; ANY+?{REGEXP("mmHg")->MARK(ME_UNITSPACING)};
DECLARE LOWERCAMELCASE,ME_UNITSPACING; Document{-> RETAINTYPE(SPACE)}; SW CW{->MARK(LOWERCAMELCASE,1,2)}; Document{-> RETAINTYPE}; LOWERCAMELCASE{REGEXP("mmHg")->MARK(ME_UNITSPACING)};
样本输入:
mmHg small City fishBowl