ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seanfi...@apache.org
Subject svn commit: r1627793 - /ctakes/trunk/ctakes-dictionary-lookup-fast-res/src/main/resources/org/apache/ctakes/dictionary/fast/cTakesHsql.xml
Date Fri, 26 Sep 2014 14:23:20 GMT
Author: seanfinan
Date: Fri Sep 26 14:23:19 2014
New Revision: 1627793

URL: http://svn.apache.org/r1627793
Log:
Extracted interface DictionarySpec and moved implementation to DefaultDictionarySpec
Added UmlsJdbcRareWordDictionary
Changed cTakesHsql.xml to point to UmlsJdbcRareWordDictionary
Updated AbstractJCasTermAnnotator for external updates (index, etc)
Switched to UmlsJdbcRareWordDictionary

Modified:
    ctakes/trunk/ctakes-dictionary-lookup-fast-res/src/main/resources/org/apache/ctakes/dictionary/fast/cTakesHsql.xml

Modified: ctakes/trunk/ctakes-dictionary-lookup-fast-res/src/main/resources/org/apache/ctakes/dictionary/fast/cTakesHsql.xml
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-dictionary-lookup-fast-res/src/main/resources/org/apache/ctakes/dictionary/fast/cTakesHsql.xml?rev=1627793&r1=1627792&r2=1627793&view=diff
==============================================================================
--- ctakes/trunk/ctakes-dictionary-lookup-fast-res/src/main/resources/org/apache/ctakes/dictionary/fast/cTakesHsql.xml
(original)
+++ ctakes/trunk/ctakes-dictionary-lookup-fast-res/src/main/resources/org/apache/ctakes/dictionary/fast/cTakesHsql.xml
Fri Sep 26 14:23:19 2014
@@ -21,65 +21,68 @@
 -->
 <lookupSpecification>
 
-    <dictionaries>
-        <dictionary>
-            <name>UmlsHsqlRareWord</name>
-            <implementationName>org.apache.ctakes.dictionary.lookup2.JdbcRareWordDictionary</implementationName>
-            <properties>
-                <property key="jdbcDriver" value="org.hsqldb.jdbcDriver"/>
-                <property key="jdbcUrl" value="jdbc:hsqldb:res:org/apache/ctakes/dictionary/fast/ctakes_sno_rx_mem/ctakes_sno_rx_mem"/>
-                <property key="jdbcUser" value="sa"/>
-                <property key="jdbcPass" value=""/>
-                <property key="rareWordTable" value="cui_terms"/>
-                <property key="umlsUrl" value="https://uts-ws.nlm.nih.gov/restful/isValidctakes.umlsuser"/>
-                <property key="umlsVendor" value="NLM-6515182895"/>
-                <property key="umlsUser" value="CHANGEME"/>
-                <property key="umlsPass" value="CHANGEME"/>
-            </properties>
-        </dictionary>
-    </dictionaries>
+   <dictionaries>
+      <dictionary>
+         <name>UmlsHsqlRareWord</name>
+         <implementationName>org.apache.ctakes.dictionary.lookup2.dictionary.UmlsJdbcRareWordDictionary
+         </implementationName>
+         <properties>
+            <property key="jdbcDriver" value="org.hsqldb.jdbcDriver"/>
+            <property key="jdbcUrl"
+                      value="jdbc:hsqldb:res:org/apache/ctakes/dictionary/fast/ctakes_sno_rx_mem/ctakes_sno_rx_mem"/>
+            <property key="jdbcUser" value="sa"/>
+            <property key="jdbcPass" value=""/>
+            <property key="rareWordTable" value="cui_terms"/>
+            <property key="umlsUrl" value="https://uts-ws.nlm.nih.gov/restful/isValidctakes.umlsuser"/>
+            <property key="umlsVendor" value="NLM-6515182895"/>
+            <property key="umlsUser" value="CHANGEME"/>
+            <property key="umlsPass" value="CHANGEME"/>
+         </properties>
+      </dictionary>
+   </dictionaries>
 
-    <conceptFactories>
-        <conceptFactory>
-            <name>UmlsHsqlCuiTable</name>
-            <implementationName>org.apache.ctakes.dictionary.lookup2.concept.JdbcConceptFactory</implementationName>
-            <properties>
-                <property key="jdbcDriver" value="org.hsqldb.jdbcDriver"/>
-                <property key="jdbcUrl" value="jdbc:hsqldb:res:org/apache/ctakes/dictionary/fast/ctakes_sno_rx_mem/ctakes_sno_rx_mem"/>
-                <property key="jdbcUser" value="sa"/>
-                <property key="jdbcPass" value=""/>
-                <property key="tuiTable" value="tui"/>
-                <property key="prefTermTable" value="prefTerm"/>
-                <!--<property key="snomedTable" value="snomedct"/>-->
-                <!--<property key="rxNormTable" value="rxnorm"/>-->
-                <!--<property key="icd9Table" value="icd9cm"/>-->
-                <!--<property key="icd10Table" value="icd10pcs"/>-->
-                <property key="umlsUrl" value="https://uts-ws.nlm.nih.gov/restful/isValidctakes.umlsuser"/>
-                <property key="umlsVendor" value="NLM-6515182895"/>
-                <property key="umlsUser" value="CHANGEME"/>
-                <property key="umlsPass" value="CHANGEME"/>
-            </properties>
-        </conceptFactory>
-    </conceptFactories>
+   <conceptFactories>
+      <conceptFactory>
+         <name>UmlsHsqlCuiTable</name>
+         <implementationName>org.apache.ctakes.dictionary.lookup2.concept.JdbcConceptFactory</implementationName>
+         <properties>
+            <property key="jdbcDriver" value="org.hsqldb.jdbcDriver"/>
+            <property key="jdbcUrl"
+                      value="jdbc:hsqldb:res:org/apache/ctakes/dictionary/fast/ctakes_sno_rx_mem/ctakes_sno_rx_mem"/>
+            <property key="jdbcUser" value="sa"/>
+            <property key="jdbcPass" value=""/>
+            <property key="tuiTable" value="tui"/>
+            <property key="prefTermTable" value="prefTerm"/>
+            <!--<property key="snomedTable" value="snomedct"/>-->
+            <!--<property key="rxNormTable" value="rxnorm"/>-->
+            <!--<property key="icd9Table" value="icd9cm"/>-->
+            <!--<property key="icd10Table" value="icd10pcs"/>-->
+            <property key="umlsUrl" value="https://uts-ws.nlm.nih.gov/restful/isValidctakes.umlsuser"/>
+            <property key="umlsVendor" value="NLM-6515182895"/>
+            <property key="umlsUser" value="CHANGEME"/>
+            <property key="umlsPass" value="CHANGEME"/>
+         </properties>
+      </conceptFactory>
+   </conceptFactories>
 
    <!--  Defines what terms and concepts will be used  -->
-    <dictionaryConceptPairs>
-        <dictionaryConceptPair>
-            <name>cTakesUmls</name>
-            <dictionaryName>UmlsHsqlRareWord</dictionaryName>
-            <conceptFactoryName>UmlsHsqlCuiTable</conceptFactoryName>
-        </dictionaryConceptPair>
-    </dictionaryConceptPairs>
+   <dictionaryConceptPairs>
+      <dictionaryConceptPair>
+         <name>cTakesUmls</name>
+         <dictionaryName>UmlsHsqlRareWord</dictionaryName>
+         <conceptFactoryName>UmlsHsqlCuiTable</conceptFactoryName>
+      </dictionaryConceptPair>
+   </dictionaryConceptPairs>
 
-    <!-- PrecisionTermConsumer will only persist only the longest overlapping span of
any semantic group -->
+   <!-- PrecisionTermConsumer will only persist only the longest overlapping span of any
semantic group -->
    <!-- DefaultTermConsumer will persist all spans  -->
-    <rareWordConsumer>
-        <name>Term Consumer</name>
-        <!--<implementationName>org.apache.ctakes.dictionary.lookup2.consumer.PrecisionTermConsumer</implementationName>-->
-        <implementationName>org.apache.ctakes.dictionary.lookup2.consumer.DefaultTermConsumer</implementationName>
-        <properties>
-            <property key="codingScheme" value="cTakes"/>
-        </properties>
-    </rareWordConsumer>
+   <rareWordConsumer>
+      <name>Term Consumer</name>
+      <!--<implementationName>org.apache.ctakes.dictionary.lookup2.consumer.PrecisionTermConsumer</implementationName>-->
+      <implementationName>org.apache.ctakes.dictionary.lookup2.consumer.DefaultTermConsumer</implementationName>
+      <properties>
+         <property key="codingScheme" value="cTakes"/>
+      </properties>
+   </rareWordConsumer>
 
 </lookupSpecification>



Mime
View raw message