This is what we did:
Created and populated a terms file called psychterms.bsv
Put it in
resources\org\apache\ctakes\dictionary\lookup\fast\duke\bsv\symptoms8.bsv
updated file resources\org\apache\ctakes\dictionary\lookup\fast\sno_rx_16ab.xml
by adding:
This to dictionaries:
<dictionary>
<name>CustomPsychCuiRareWord</name>
<implementationName>org.apache.ctakes.dictionary.lookup2.dictionary.BsvRareWordDictionary</implementationName>
<properties>
<property key="bsvPath"
value="org/apache/ctakes/dictionary/lookup/fast/duke/bsv/symptoms8.bsv"/>
</properties>
</dictionary>
This to concept factories:
<conceptFactory>
<name>CustomPsychCuiConcept</name>
<implementationName>org.apache.ctakes.dictionary.lookup2.concept.BsvConceptFactory</implementationName>
<properties>
<property key="bsvPath"
value="org/apache/ctakes/dictionary/lookup/fast/duke/bsv/symptoms8.bsv"/>
</properties>
</conceptFactory>
This to dictionearyConceptPairs:
<dictionaryConceptPair>
<name>CustomPsychTermsPair</name>
<dictionaryName>CustomPsychCuiRareWord</dictionaryName>
<conceptFactoryName>CustomPsychCuiConcept</conceptFactoryName>
</dictionaryConceptPair>
And change this property from
<property key="codingScheme" value="sno_rx_16ab"/>
To
<property key="codingScheme" value="custom"/>
Hope this helps,
Steve
From: Piyush Agarwal <[email protected]>
Sent: Thursday, May 9, 2019 8:43 AM
To: [email protected]
Subject: Question on how to configure bsv dictionary usage with fast lookup
Hi,
I want to use the default dictionary provided with fast lookup, but also want
to add few additional terms in the bsv file
How do I configure the fast dictionary lookup to do so?
Regards,
Piyush Agarwal
Chief Research Officer
Auronia