CUI Question

2023-02-02 Thread JOHN R CASKEY
Hello, I’ve run into a problem and a question when running cTAKES. If I have a document and process it through cTAKES, then the XMI output will contain numerous XML tags. The tags our lab is interested in are the CUIs, for example, the XMI tag Would indicate the CUI C0025859 for Metoprolol-co

Re: CUI Question [EXTERNAL]

2023-02-02 Thread Finan, Sean
Hi John, Each annotation gets a unique concept for every combination of possible codes, semantic types, etc. You have pasted a good example of when that happens: (abbreviated) < code="7092007" tui="T109"/> This is definitely a little confusing when the CUI for all 4 'unique' concepts is th

Re: CUI Question [EXTERNAL]

2023-02-02 Thread JOHN R CASKEY
Awesome, thank you very much! From: Finan, Sean Date: Thursday, February 2, 2023 at 1:53 PM To: dev@ctakes.apache.org Subject: Re: CUI Question [EXTERNAL] Hi John, Each annotation gets a unique concept for every combination of possible codes, semantic types, etc. You have pasted a good example

Re: CUI Question [EXTERNAL]

2023-02-02 Thread JOHN R CASKEY
Hi Sean, I’ve got one additional question, sorry if it’s a naive one. If I send cTAKES an XMI file as input, is the file name stored anywhere in the jCas object that is created? The problem I’m running into is I’m trying to retrieve the file name via File noteFile = new File(ViewUriUtil.getURI(

Re: CUI Question [EXTERNAL]

2023-02-02 Thread Finan, Sean
Hi John, To start, I would use XmiTreeReader to read in the XMI file(s). It can read a single file or multiple files in a directory tree. In your piper file, just add the line: "reader XmiTreeReader" XmiTreeReader will automatically store metadata like doc ID, and file path. The file path is