You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ctakes.apache.org by sp...@apache.org on 2012/12/18 16:50:17 UTC
svn commit: r1423487 -
/incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-smoking-status/src/main/resources/org/apache/ctakes/smokingstatus/analysis_engine/
Author: spmurphy50
Date: Tue Dec 18 15:50:16 2012
New Revision: 1423487
URL: http://svn.apache.org/viewvc?rev=1423487&view=rev
Log:
cTAKES 101
Added:
incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-smoking-status/src/main/resources/org/apache/ctakes/smokingstatus/analysis_engine/
incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-smoking-status/src/main/resources/org/apache/ctakes/smokingstatus/analysis_engine/ArtificialSentenceAnnotator.xml (with props)
incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-smoking-status/src/main/resources/org/apache/ctakes/smokingstatus/analysis_engine/KuRuleBasedClassifierAnnotator.xml (with props)
incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-smoking-status/src/main/resources/org/apache/ctakes/smokingstatus/analysis_engine/PcsClassifierAnnotator_libsvm.xml (with props)
incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-smoking-status/src/main/resources/org/apache/ctakes/smokingstatus/analysis_engine/ProductionPostSentenceAggregate_step1.xml (with props)
incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-smoking-status/src/main/resources/org/apache/ctakes/smokingstatus/analysis_engine/ProductionPostSentenceAggregate_step2_libsvm.xml (with props)
incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-smoking-status/src/main/resources/org/apache/ctakes/smokingstatus/analysis_engine/SentenceAdjuster.xml (with props)
incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-smoking-status/src/main/resources/org/apache/ctakes/smokingstatus/analysis_engine/SmokingStatusDictionaryLookupAnnotator.xml (with props)
Added: incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-smoking-status/src/main/resources/org/apache/ctakes/smokingstatus/analysis_engine/ArtificialSentenceAnnotator.xml
URL: http://svn.apache.org/viewvc/incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-smoking-status/src/main/resources/org/apache/ctakes/smokingstatus/analysis_engine/ArtificialSentenceAnnotator.xml?rev=1423487&view=auto
==============================================================================
--- incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-smoking-status/src/main/resources/org/apache/ctakes/smokingstatus/analysis_engine/ArtificialSentenceAnnotator.xml (added)
+++ incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-smoking-status/src/main/resources/org/apache/ctakes/smokingstatus/analysis_engine/ArtificialSentenceAnnotator.xml Tue Dec 18 15:50:16 2012
@@ -0,0 +1,94 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+<taeDescription xmlns="http://uima.apache.org/resourceSpecifier">
+<frameworkImplementation>org.apache.uima.java</frameworkImplementation>
+<primitive>true</primitive>
+<annotatorImplementationName>org.apache.ctakes.core.ae.CopyAnnotator</annotatorImplementationName>
+<analysisEngineMetaData>
+<name>ArtificialSentenceAnnotator</name>
+<description>Artificially creates a new SentenceAnnotation object by treating the entire document as a sentence. The offset values from the DocumentAnnotation object are transferred over to the new SentenceAnnotation object.</description>
+<version></version>
+<vendor>Mayo</vendor>
+<configurationParameters>
+<configurationParameter>
+<name>srcObjClass</name>
+<description>Source JCas object class. This must be an object that already exists in the JCas.</description>
+<type>String</type>
+<multiValued>false</multiValued>
+<mandatory>true</mandatory>
+</configurationParameter>
+<configurationParameter>
+<name>destObjClass</name>
+<description>Destination JCas object class. A new JCas object will be created.</description>
+<type>String</type>
+<multiValued>false</multiValued>
+<mandatory>true</mandatory>
+</configurationParameter>
+<configurationParameter>
+<name>dataBindMap</name>
+<description>Binds data from source to destination. Format for each entry is the getter method name of the source to the setter method name of the destination. e.g. getMyValue|setMyValue</description>
+<type>String</type>
+<multiValued>true</multiValued>
+<mandatory>true</mandatory>
+</configurationParameter>
+</configurationParameters>
+<configurationParameterSettings>
+<nameValuePair>
+<name>srcObjClass</name>
+<value>
+<string>org.apache.uima.jcas.tcas.DocumentAnnotation</string>
+</value>
+</nameValuePair>
+<nameValuePair>
+<name>destObjClass</name>
+<value>
+<string>org.apache.ctakes.typesystem.type.textspan.Sentence</string>
+</value>
+</nameValuePair>
+<nameValuePair>
+<name>dataBindMap</name>
+<value>
+<array>
+<string>getBegin|setBegin</string>
+<string>getEnd|setEnd</string>
+</array>
+</value>
+</nameValuePair>
+</configurationParameterSettings>
+<typeSystemDescription/>
+<typePriorities/>
+<fsIndexCollection/>
+<capabilities>
+<capability>
+<inputs/>
+<outputs/>
+<languagesSupported/>
+</capability>
+</capabilities>
+<operationalProperties>
+<modifiesCas>true</modifiesCas>
+<multipleDeploymentAllowed>true</multipleDeploymentAllowed>
+<outputsNewCASes>false</outputsNewCASes>
+</operationalProperties>
+</analysisEngineMetaData>
+<resourceManagerConfiguration/>
+</taeDescription>
Propchange: incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-smoking-status/src/main/resources/org/apache/ctakes/smokingstatus/analysis_engine/ArtificialSentenceAnnotator.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-smoking-status/src/main/resources/org/apache/ctakes/smokingstatus/analysis_engine/KuRuleBasedClassifierAnnotator.xml
URL: http://svn.apache.org/viewvc/incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-smoking-status/src/main/resources/org/apache/ctakes/smokingstatus/analysis_engine/KuRuleBasedClassifierAnnotator.xml?rev=1423487&view=auto
==============================================================================
--- incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-smoking-status/src/main/resources/org/apache/ctakes/smokingstatus/analysis_engine/KuRuleBasedClassifierAnnotator.xml (added)
+++ incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-smoking-status/src/main/resources/org/apache/ctakes/smokingstatus/analysis_engine/KuRuleBasedClassifierAnnotator.xml Tue Dec 18 15:50:16 2012
@@ -0,0 +1,86 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<taeDescription xmlns="http://uima.apache.org/resourceSpecifier">
+ <frameworkImplementation>org.apache.uima.java</frameworkImplementation>
+ <primitive>true</primitive>
+ <annotatorImplementationName>org.apache.ctakes.smokingstatus.ae.KuRuleBasedClassifierAnnotator</annotatorImplementationName>
+ <analysisEngineMetaData>
+ <name>KuRuleBasedClassifierAnnotator</name>
+ <description>Known vs Unknow classifier using smoking related keywords</description>
+ <version/>
+ <vendor/>
+ <configurationParameters>
+ <configurationParameter>
+ <name>CaseSensitive</name>
+ <type>Boolean</type>
+ <multiValued>false</multiValued>
+ <mandatory>true</mandatory>
+ </configurationParameter>
+ <configurationParameter>
+ <name>classAttribute</name>
+ <type>String</type>
+ <multiValued>false</multiValued>
+ <mandatory>true</mandatory>
+ </configurationParameter>
+ <configurationParameter>
+ <name>SmokingWordsFile</name>
+ <description>smoking related keywords to identify "known" class</description>
+ <type>String</type>
+ <multiValued>false</multiValued>
+ <mandatory>true</mandatory>
+ </configurationParameter>
+ <configurationParameter>
+ <name>UnknownWordsFile</name>
+ <description>If this word/phrase appears, treat the sentence as UNKNOWN</description>
+ <type>String</type>
+ <multiValued>false</multiValued>
+ <mandatory>true</mandatory>
+ </configurationParameter>
+ </configurationParameters>
+ <configurationParameterSettings>
+ <nameValuePair>
+ <name>SmokingWordsFile</name>
+ <value>
+ <string>org/apache/ctakes/smokingstatus/data/KU/keywords.txt</string>
+ </value>
+ </nameValuePair>
+ <nameValuePair>
+ <name>classAttribute</name>
+ <value>
+ <string>smoking_status</string>
+ </value>
+ </nameValuePair>
+ <nameValuePair>
+ <name>CaseSensitive</name>
+ <value>
+ <boolean>false</boolean>
+ </value>
+ </nameValuePair>
+ <nameValuePair>
+ <name>UnknownWordsFile</name>
+ <value>
+ <string>org/apache/ctakes/smokingstatus/data/KU/unknown_words.txt</string>
+ </value>
+ </nameValuePair>
+ </configurationParameterSettings>
+ <typeSystemDescription>
+ <imports>
+ <import name="org.apache.ctakes.smokingstatus.types.Typesystem"/>
+ </imports>
+ </typeSystemDescription>
+ <typePriorities/>
+ <fsIndexCollection/>
+ <capabilities>
+ <capability>
+ <inputs/>
+ <outputs/>
+ <languagesSupported/>
+ </capability>
+ </capabilities>
+ <operationalProperties>
+ <modifiesCas>true</modifiesCas>
+ <multipleDeploymentAllowed>true</multipleDeploymentAllowed>
+ <outputsNewCASes>false</outputsNewCASes>
+ </operationalProperties>
+ </analysisEngineMetaData>
+ <resourceManagerConfiguration/>
+</taeDescription>
Propchange: incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-smoking-status/src/main/resources/org/apache/ctakes/smokingstatus/analysis_engine/KuRuleBasedClassifierAnnotator.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-smoking-status/src/main/resources/org/apache/ctakes/smokingstatus/analysis_engine/PcsClassifierAnnotator_libsvm.xml
URL: http://svn.apache.org/viewvc/incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-smoking-status/src/main/resources/org/apache/ctakes/smokingstatus/analysis_engine/PcsClassifierAnnotator_libsvm.xml?rev=1423487&view=auto
==============================================================================
--- incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-smoking-status/src/main/resources/org/apache/ctakes/smokingstatus/analysis_engine/PcsClassifierAnnotator_libsvm.xml (added)
+++ incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-smoking-status/src/main/resources/org/apache/ctakes/smokingstatus/analysis_engine/PcsClassifierAnnotator_libsvm.xml Tue Dec 18 15:50:16 2012
@@ -0,0 +1,136 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+<taeDescription xmlns="http://uima.apache.org/resourceSpecifier">
+<frameworkImplementation>org.apache.uima.java</frameworkImplementation>
+<primitive>true</primitive>
+<annotatorImplementationName>org.apache.ctakes.smokingstatus.ae.PcsClassifierAnnotator_libsvm</annotatorImplementationName>
+<analysisEngineMetaData>
+<name>PcsClassifierAnnotator_libsvm</name>
+<description>PCS classifier using libsvm. This annotator plays the same role as PcsBOWFeatureAnnotator.xml, PcsClassifierAnnotator.xml, and BOWFeatureRemovalAnnotator.xml, which use Weka.</description>
+<version></version>
+<vendor></vendor>
+<configurationParameters>
+<configurationParameter>
+<name>CaseSensitive</name>
+<type>Boolean</type>
+<multiValued>false</multiValued>
+<mandatory>true</mandatory>
+</configurationParameter>
+</configurationParameters>
+<configurationParameterSettings>
+<nameValuePair>
+<name>CaseSensitive</name>
+<value>
+<boolean>false</boolean>
+</value>
+</nameValuePair>
+</configurationParameterSettings>
+<typeSystemDescription>
+<imports>
+ <import name="org.apache.ctakes.smokingstatus.types.Typesystem"/>
+</imports>
+</typeSystemDescription>
+<typePriorities/>
+<fsIndexCollection/>
+<capabilities>
+<capability>
+<inputs>
+<type allAnnotatorFeatures="true">org.apache.ctakes.typesystem.type.syntax.BaseToken</type>
+</inputs>
+<outputs>
+<type allAnnotatorFeatures="true">org.apache.ctakes.smokingstatus.type.libsvms.StringAttributeValue</type>
+<type allAnnotatorFeatures="true">org.apache.ctakes.smokingstatus.type.libsvms.NumericAttributeValue</type>
+<type allAnnotatorFeatures="true">org.apache.ctakes.smokingstatus.type.libsvms.DateAttributeValue</type>
+<type allAnnotatorFeatures="true">org.apache.ctakes.smokingstatus.type.libsvms.AttributeValue</type>
+</outputs>
+<languagesSupported/>
+</capability>
+</capabilities>
+<operationalProperties>
+<modifiesCas>true</modifiesCas>
+<multipleDeploymentAllowed>true</multipleDeploymentAllowed>
+<outputsNewCASes>false</outputsNewCASes>
+</operationalProperties>
+</analysisEngineMetaData>
+<externalResourceDependencies>
+<externalResourceDependency>
+<key>PathOfModel</key>
+<description></description>
+<interfaceName>org.apache.ctakes.core.resource.FileResource</interfaceName>
+<optional>false</optional>
+</externalResourceDependency>
+<externalResourceDependency>
+<key>StopWordsFile</key>
+<description></description>
+<interfaceName>org.apache.ctakes.core.resource.FileResource</interfaceName>
+<optional>false</optional>
+</externalResourceDependency>
+<externalResourceDependency>
+<key>PCSKeyWordFile</key>
+<description/>
+<interfaceName>org.apache.ctakes.core.resource.FileResource</interfaceName>
+<optional>false</optional>
+</externalResourceDependency>
+</externalResourceDependencies>
+<resourceManagerConfiguration>
+<externalResources>
+<externalResource>
+<name>PathOfModelResc</name>
+<description></description>
+<fileResourceSpecifier>
+<fileUrl>file:org/apache/ctakes/smokingstatus/data/PCS/pcs_libsvm-2.91.model</fileUrl>
+</fileResourceSpecifier>
+<implementationName>org.apache.ctakes.core.resource.FileResourceImpl</implementationName>
+</externalResource>
+<externalResource>
+<name>PCSKeyWordFileResc</name>
+<description/>
+<fileResourceSpecifier>
+<fileUrl>file:org/apache/ctakes/smokingstatus/data/PCS/keywords_PCS.txt</fileUrl>
+</fileResourceSpecifier>
+<implementationName>org.apache.ctakes.core.resource.FileResourceImpl</implementationName>
+</externalResource>
+<externalResource>
+<name>StopWordsFileResc</name>
+<description></description>
+<fileResourceSpecifier>
+<fileUrl>file:org/apache/ctakes/smokingstatus/data/PCS/stopwords_PCS.txt</fileUrl>
+</fileResourceSpecifier>
+<implementationName>org.apache.ctakes.core.resource.FileResourceImpl</implementationName>
+</externalResource>
+</externalResources>
+<externalResourceBindings>
+<externalResourceBinding>
+<key>PathOfModel</key>
+<resourceName>PathOfModelResc</resourceName>
+</externalResourceBinding>
+<externalResourceBinding>
+<key>StopWordsFile</key>
+<resourceName>StopWordsFileResc</resourceName>
+</externalResourceBinding>
+<externalResourceBinding>
+<key>PCSKeyWordFile</key>
+<resourceName>PCSKeyWordFileResc</resourceName>
+</externalResourceBinding>
+</externalResourceBindings>
+</resourceManagerConfiguration>
+</taeDescription>
Propchange: incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-smoking-status/src/main/resources/org/apache/ctakes/smokingstatus/analysis_engine/PcsClassifierAnnotator_libsvm.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-smoking-status/src/main/resources/org/apache/ctakes/smokingstatus/analysis_engine/ProductionPostSentenceAggregate_step1.xml
URL: http://svn.apache.org/viewvc/incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-smoking-status/src/main/resources/org/apache/ctakes/smokingstatus/analysis_engine/ProductionPostSentenceAggregate_step1.xml?rev=1423487&view=auto
==============================================================================
--- incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-smoking-status/src/main/resources/org/apache/ctakes/smokingstatus/analysis_engine/ProductionPostSentenceAggregate_step1.xml (added)
+++ incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-smoking-status/src/main/resources/org/apache/ctakes/smokingstatus/analysis_engine/ProductionPostSentenceAggregate_step1.xml Tue Dec 18 15:50:16 2012
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+<taeDescription xmlns="http://uima.apache.org/resourceSpecifier">
+ <frameworkImplementation>org.apache.uima.java</frameworkImplementation>
+ <primitive>false</primitive>
+ <delegateAnalysisEngineSpecifiers>
+ <delegateAnalysisEngine key="TokenizerAnnotator">
+ <import name="org.apache.ctakes.core.analysis_engine.TokenizerAnnotator"/>
+ </delegateAnalysisEngine>
+ <delegateAnalysisEngine key="KuRuleBasedClassifierAnnotator">
+ <import location="KuRuleBasedClassifierAnnotator.xml"/>
+ </delegateAnalysisEngine>
+ <delegateAnalysisEngine key="SentenceDetectAnnotator">
+ <import name="org.apache.ctakes.core.analysis_engine.SentenceDetectorAnnotator"/>
+ </delegateAnalysisEngine>
+ </delegateAnalysisEngineSpecifiers>
+ <analysisEngineMetaData>
+ <name>ProductionPostSentenceAggregate_step1</name>
+ <description>Aggregate TAE used to run the Smoking Status pipeline. This should be followed by the RecordResolutionCasConsumer.</description>
+ <version/>
+ <vendor/>
+ <configurationParameters searchStrategy="language_fallback"/>
+ <configurationParameterSettings/>
+ <flowConstraints>
+ <fixedFlow>
+ <node>SentenceDetectAnnotator</node>
+ <node>TokenizerAnnotator</node>
+ <node>KuRuleBasedClassifierAnnotator</node>
+ </fixedFlow>
+ </flowConstraints>
+ <typePriorities/>
+ <fsIndexCollection/>
+ <capabilities>
+ <capability>
+ <inputs/>
+ <outputs/>
+ <languagesSupported/>
+ </capability>
+ </capabilities>
+ <operationalProperties>
+ <modifiesCas>true</modifiesCas>
+ <multipleDeploymentAllowed>true</multipleDeploymentAllowed>
+ <outputsNewCASes>false</outputsNewCASes>
+ </operationalProperties>
+ </analysisEngineMetaData>
+ <resourceManagerConfiguration/>
+</taeDescription>
Propchange: incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-smoking-status/src/main/resources/org/apache/ctakes/smokingstatus/analysis_engine/ProductionPostSentenceAggregate_step1.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-smoking-status/src/main/resources/org/apache/ctakes/smokingstatus/analysis_engine/ProductionPostSentenceAggregate_step2_libsvm.xml
URL: http://svn.apache.org/viewvc/incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-smoking-status/src/main/resources/org/apache/ctakes/smokingstatus/analysis_engine/ProductionPostSentenceAggregate_step2_libsvm.xml?rev=1423487&view=auto
==============================================================================
--- incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-smoking-status/src/main/resources/org/apache/ctakes/smokingstatus/analysis_engine/ProductionPostSentenceAggregate_step2_libsvm.xml (added)
+++ incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-smoking-status/src/main/resources/org/apache/ctakes/smokingstatus/analysis_engine/ProductionPostSentenceAggregate_step2_libsvm.xml Tue Dec 18 15:50:16 2012
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="UTF-8"?><taeDescription xmlns="http://uima.apache.org/resourceSpecifier">
+ <frameworkImplementation>org.apache.uima.java</frameworkImplementation>
+ <primitive>false</primitive>
+ <delegateAnalysisEngineSpecifiers>
+ <delegateAnalysisEngine key="NegationAnnotator">
+ <import name="org.apache.ctakes.necontexts.desc.NegationAnnotator"/>
+ </delegateAnalysisEngine>
+ <delegateAnalysisEngine key="SentenceAdjuster">
+ <import location="SentenceAdjuster.xml"/>
+ </delegateAnalysisEngine>
+ <delegateAnalysisEngine key="SmokingStatusDictionaryLookupAnnotator">
+ <import location="SmokingStatusDictionaryLookupAnnotator.xml"/>
+ </delegateAnalysisEngine>
+ <delegateAnalysisEngine key="PcsClassifierAnnotator_libsvm">
+ <import location="PcsClassifierAnnotator_libsvm.xml"/>
+ </delegateAnalysisEngine>
+ <delegateAnalysisEngine key="ArtificialSentenceAnnotator">
+ <import location="ArtificialSentenceAnnotator.xml"/>
+ </delegateAnalysisEngine>
+ </delegateAnalysisEngineSpecifiers>
+ <analysisEngineMetaData>
+ <name>Smoking Status AE</name>
+ <description>Aggregate AE used to run the Smoking Status pipeline. This should be followed by the RecordResolutionCasConsumer.</description>
+ <version/>
+ <vendor/>
+ <configurationParameters searchStrategy="language_fallback"/>
+ <configurationParameterSettings/>
+ <flowConstraints>
+ <fixedFlow>
+ <node>PcsClassifierAnnotator_libsvm</node>
+ <node>ArtificialSentenceAnnotator</node>
+ <node>SentenceAdjuster</node>
+ <node>SmokingStatusDictionaryLookupAnnotator</node>
+ <node>NegationAnnotator</node>
+ </fixedFlow>
+ </flowConstraints>
+ <fsIndexCollection/>
+ <capabilities>
+ <capability>
+ <inputs/>
+ <outputs/>
+ <languagesSupported/>
+ </capability>
+ </capabilities>
+ <operationalProperties>
+ <modifiesCas>true</modifiesCas>
+ <multipleDeploymentAllowed>true</multipleDeploymentAllowed>
+ <outputsNewCASes>false</outputsNewCASes>
+ </operationalProperties>
+ </analysisEngineMetaData>
+ <resourceManagerConfiguration/>
+</taeDescription>
Propchange: incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-smoking-status/src/main/resources/org/apache/ctakes/smokingstatus/analysis_engine/ProductionPostSentenceAggregate_step2_libsvm.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-smoking-status/src/main/resources/org/apache/ctakes/smokingstatus/analysis_engine/SentenceAdjuster.xml
URL: http://svn.apache.org/viewvc/incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-smoking-status/src/main/resources/org/apache/ctakes/smokingstatus/analysis_engine/SentenceAdjuster.xml?rev=1423487&view=auto
==============================================================================
--- incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-smoking-status/src/main/resources/org/apache/ctakes/smokingstatus/analysis_engine/SentenceAdjuster.xml (added)
+++ incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-smoking-status/src/main/resources/org/apache/ctakes/smokingstatus/analysis_engine/SentenceAdjuster.xml Tue Dec 18 15:50:16 2012
@@ -0,0 +1,111 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+<taeDescription xmlns="http://uima.watson.ibm.com/resourceSpecifier">
+ <frameworkImplementation>org.apache.uima.java</frameworkImplementation>
+ <primitive>true</primitive>
+ <annotatorImplementationName>org.apache.ctakes.smokingstatus.ae.SentenceAdjuster</annotatorImplementationName>
+ <analysisEngineMetaData>
+ <name>Sentence Adjuster</name>
+ <description>This annotator expands sentence annotations of type "Tobacco: none" to allow the correct negation recognition of the relevant NEs.</description>
+ <version>1.0</version>
+ <vendor>Mayo Clinic</vendor>
+ <configurationParameters>
+ <configurationParameter>
+ <name>UseSegments</name>
+ <description>Flag whether to use segments or full doc text.</description>
+ <type>Boolean</type>
+ <multiValued>false</multiValued>
+ <mandatory>false</mandatory>
+ </configurationParameter>
+ <configurationParameter>
+ <name>SegmentsToSkip</name>
+ <description>Segments to skip.</description>
+ <type>String</type>
+ <multiValued>true</multiValued>
+ <mandatory>false</mandatory>
+ </configurationParameter>
+ <configurationParameter>
+ <name>WordsToIgnore</name>
+ <description>Set of words that PostModifier should ignore (act as if the word was not there) when looking for a pattern match.</description>
+ <type>String</type>
+ <multiValued>true</multiValued>
+ <mandatory>false</mandatory>
+ </configurationParameter>
+ <configurationParameter>
+ <name>WordsInPattern</name>
+ <type>String</type>
+ <multiValued>true</multiValued>
+ <mandatory>true</mandatory>
+ </configurationParameter>
+ </configurationParameters>
+ <configurationParameterSettings>
+ <nameValuePair>
+ <name>UseSegments</name>
+ <value>
+ <boolean>false</boolean>
+ </value>
+ </nameValuePair>
+ <nameValuePair>
+ <name>SegmentsToSkip</name>
+ <value>
+ <array>
+ <string/>
+ </array>
+ </value>
+ </nameValuePair>
+ <nameValuePair>
+ <name>WordsToIgnore</name>
+ <value>
+ <array/>
+ </value>
+ </nameValuePair>
+ <nameValuePair>
+ <name>WordsInPattern</name>
+ <value>
+ <array>
+ <string>no</string>
+ <string>none</string>
+ <string>never</string>
+ <string>quit</string>
+ <string>smoked</string>
+ <string>:</string>
+ </array>
+ </value>
+ </nameValuePair>
+ </configurationParameterSettings>
+ <typeSystemDescription/>
+ <typePriorities/>
+ <fsIndexCollection/>
+ <capabilities>
+ <capability>
+ <inputs/>
+ <outputs/>
+ <languagesSupported/>
+ </capability>
+ </capabilities>
+ <operationalProperties>
+ <modifiesCas>true</modifiesCas>
+ <multipleDeploymentAllowed>true</multipleDeploymentAllowed>
+ </operationalProperties>
+ </analysisEngineMetaData>
+ <resourceManagerConfiguration/>
+</taeDescription>
Propchange: incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-smoking-status/src/main/resources/org/apache/ctakes/smokingstatus/analysis_engine/SentenceAdjuster.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-smoking-status/src/main/resources/org/apache/ctakes/smokingstatus/analysis_engine/SmokingStatusDictionaryLookupAnnotator.xml
URL: http://svn.apache.org/viewvc/incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-smoking-status/src/main/resources/org/apache/ctakes/smokingstatus/analysis_engine/SmokingStatusDictionaryLookupAnnotator.xml?rev=1423487&view=auto
==============================================================================
--- incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-smoking-status/src/main/resources/org/apache/ctakes/smokingstatus/analysis_engine/SmokingStatusDictionaryLookupAnnotator.xml (added)
+++ incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-smoking-status/src/main/resources/org/apache/ctakes/smokingstatus/analysis_engine/SmokingStatusDictionaryLookupAnnotator.xml Tue Dec 18 15:50:16 2012
@@ -0,0 +1,118 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+
+-->
+<taeDescription xmlns="http://uima.apache.org/resourceSpecifier">
+<frameworkImplementation>org.apache.uima.java</frameworkImplementation>
+<primitive>true</primitive>
+<annotatorImplementationName>org.apache.ctakes.dictionary.lookup.ae.DictionaryLookupAnnotator</annotatorImplementationName>
+<analysisEngineMetaData>
+<name>DictionaryLookupAnnotator</name>
+<description>Performs dictionary lookup and stores the hits as NamedEntityAnnotation objects. </description>
+<version></version>
+<vendor></vendor>
+<configurationParameters/>
+<configurationParameterSettings/>
+<typeSystemDescription>
+<imports>
+ <import name="org.apache.ctakes.smokingstatus.types.Typesystem"/>
+</imports>
+</typeSystemDescription>
+<capabilities>
+<capability>
+<inputs>
+<type allAnnotatorFeatures="true">org.apache.ctakes.typesystem.type.syntax.BaseToken</type>
+<type allAnnotatorFeatures="true">org.apache.ctakes.typesystem.type.textspan.Sentence</type>
+</inputs>
+<outputs>
+<type allAnnotatorFeatures="true">edu.mayo.bmi.uima.lookup.type.NamedEntity</type>
+</outputs>
+<languagesSupported/>
+</capability>
+</capabilities>
+<operationalProperties>
+<modifiesCas>true</modifiesCas>
+<multipleDeploymentAllowed>true</multipleDeploymentAllowed>
+<outputsNewCASes>false</outputsNewCASes>
+</operationalProperties>
+</analysisEngineMetaData>
+<externalResourceDependencies>
+<externalResourceDependency>
+<key>LookupDescriptor</key>
+<description></description>
+<interfaceName>org.apache.ctakes.core.resource.FileResource</interfaceName>
+<optional>false</optional>
+</externalResourceDependency>
+<externalResourceDependency>
+<key>SmokerDictionary</key>
+<description></description>
+<interfaceName>org.apache.ctakes.core.resource.FileResource</interfaceName>
+<optional>false</optional>
+</externalResourceDependency>
+<externalResourceDependency>
+<key>NonSmokerDictionary</key>
+<description></description>
+<interfaceName>org.apache.ctakes.core.resource.FileResource</interfaceName>
+<optional>false</optional>
+</externalResourceDependency>
+</externalResourceDependencies>
+<resourceManagerConfiguration>
+<externalResources>
+<externalResource>
+<name>LookupDescriptorFile</name>
+<description></description>
+<fileResourceSpecifier>
+<fileUrl>file:org/apache/ctakes/smokingstatus/data/SmokingStatusLookupConfig.xml</fileUrl>
+</fileResourceSpecifier>
+<implementationName>org.apache.ctakes.core.resource.FileResourceImpl</implementationName>
+</externalResource>
+<externalResource>
+<name>DictionaryFileSmoker</name>
+<description></description>
+<fileResourceSpecifier>
+<fileUrl>file:org/apache/ctakes/smokingstatus/data/smoker.dictionary</fileUrl>
+</fileResourceSpecifier>
+<implementationName>org.apache.ctakes.core.resource.FileResourceImpl</implementationName>
+</externalResource>
+<externalResource>
+<name>DictionaryFileNonSmoker</name>
+<description></description>
+<fileResourceSpecifier>
+<fileUrl>file:org/apache/ctakes/smokingstatus/data/nonsmoker.dictionary</fileUrl>
+</fileResourceSpecifier>
+<implementationName>org.apache.ctakes.core.resource.FileResourceImpl</implementationName>
+</externalResource>
+</externalResources>
+<externalResourceBindings>
+<externalResourceBinding>
+<key>LookupDescriptor</key>
+<resourceName>LookupDescriptorFile</resourceName>
+</externalResourceBinding>
+<externalResourceBinding>
+<key>SmokerDictionary</key>
+<resourceName>DictionaryFileSmoker</resourceName>
+</externalResourceBinding>
+<externalResourceBinding>
+<key>NonSmokerDictionary</key>
+<resourceName>DictionaryFileNonSmoker</resourceName>
+</externalResourceBinding>
+</externalResourceBindings>
+</resourceManagerConfiguration>
+</taeDescription>
Propchange: incubator/ctakes/branches/ctakes-3.0.0-incubating/ctakes-smoking-status/src/main/resources/org/apache/ctakes/smokingstatus/analysis_engine/SmokingStatusDictionaryLookupAnnotator.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain