Author: nick
Date: Mon Jun  8 15:29:26 2015
New Revision: 1684207

URL: http://svn.apache.org/r1684207
Log:
cTAKES config xml example and code example in JavaDocs TIKA-1642

Added:
    
tika/trunk/tika-core/src/test/resources/org/apache/tika/config/TIKA-1642-CTakes.xml
Modified:
    
tika/trunk/tika-parsers/src/main/java/org/apache/tika/parser/ctakes/CTAKESParser.java

Added: 
tika/trunk/tika-core/src/test/resources/org/apache/tika/config/TIKA-1642-CTakes.xml
URL: 
http://svn.apache.org/viewvc/tika/trunk/tika-core/src/test/resources/org/apache/tika/config/TIKA-1642-CTakes.xml?rev=1684207&view=auto
==============================================================================
--- 
tika/trunk/tika-core/src/test/resources/org/apache/tika/config/TIKA-1642-CTakes.xml
 (added)
+++ 
tika/trunk/tika-core/src/test/resources/org/apache/tika/config/TIKA-1642-CTakes.xml
 Mon Jun  8 15:29:26 2015
@@ -0,0 +1,24 @@
+<?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.
+-->
+<properties>
+  <parsers>
+    <parser class="org.apache.tika.parser.ctakes.CTAKESParser">
+       <parser class="org.apache.tika.parser.DefaultParser"/>
+    </parser>
+  </parsers>
+</properties>

Modified: 
tika/trunk/tika-parsers/src/main/java/org/apache/tika/parser/ctakes/CTAKESParser.java
URL: 
http://svn.apache.org/viewvc/tika/trunk/tika-parsers/src/main/java/org/apache/tika/parser/ctakes/CTAKESParser.java?rev=1684207&r1=1684206&r2=1684207&view=diff
==============================================================================
--- 
tika/trunk/tika-parsers/src/main/java/org/apache/tika/parser/ctakes/CTAKESParser.java
 (original)
+++ 
tika/trunk/tika-parsers/src/main/java/org/apache/tika/parser/ctakes/CTAKESParser.java
 Mon Jun  8 15:29:26 2015
@@ -35,7 +35,7 @@ import org.xml.sax.SAXException;
  * clinical text using Apache cTAKES.
  * <p>It is normally called by supplying an instance to 
  *  {@link AutoDetectParser}, such as:
- * <code>AutoDetectParser parser = new AutoDetectParser(new 
CTakesParser());</code>
+ * <code>AutoDetectParser parser = new AutoDetectParser(new 
CTAKESParser());</code>
  * <p>It can also be used by giving a Tika Config file similar to:
  * <code>
  *  &gt;properties>


Reply via email to