You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opennlp.apache.org by jo...@apache.org on 2013/04/03 13:37:53 UTC
svn commit: r1463927 - in /opennlp/trunk/opennlp-tools/lang/general: ./
tokenizer/ tokenizer/special_char_dict.xml
Author: joern
Date: Wed Apr 3 11:37:53 2013
New Revision: 1463927
URL: http://svn.apache.org/r1463927
Log:
OPENNLP-564 Added special char detokenizer rules
Added:
opennlp/trunk/opennlp-tools/lang/general/
opennlp/trunk/opennlp-tools/lang/general/tokenizer/
opennlp/trunk/opennlp-tools/lang/general/tokenizer/special_char_dict.xml
Added: opennlp/trunk/opennlp-tools/lang/general/tokenizer/special_char_dict.xml
URL: http://svn.apache.org/viewvc/opennlp/trunk/opennlp-tools/lang/general/tokenizer/special_char_dict.xml?rev=1463927&view=auto
==============================================================================
--- opennlp/trunk/opennlp-tools/lang/general/tokenizer/special_char_dict.xml (added)
+++ opennlp/trunk/opennlp-tools/lang/general/tokenizer/special_char_dict.xml Wed Apr 3 11:37:53 2013
@@ -0,0 +1,92 @@
+<?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.
+-->
+
+<dictionary>
+ <entry operation="MOVE_RIGHT">
+ <token>â</token>
+ </entry>
+ <entry operation="MOVE_LEFT">
+ <token>â</token>
+ </entry>
+ <entry operation="MOVE_LEFT">
+ <token>â</token>
+ </entry>
+ <entry operation="MOVE_LEFT">
+ <token>»</token>
+ </entry>
+ <entry operation="MOVE_RIGHT">
+ <token>«</token>
+ </entry>
+ <entry operation="RIGHT_LEFT_MATCHING">
+ <token>"</token>
+ </entry>
+ <entry operation="RIGHT_LEFT_MATCHING">
+ <token>'</token>
+ </entry>
+ <entry operation="MOVE_LEFT">
+ <token>.</token>
+ </entry>
+ <entry operation="MOVE_LEFT">
+ <token>?</token>
+ </entry>
+ <entry operation="MOVE_LEFT">
+ <token>!</token>
+ </entry>
+ <entry operation="MOVE_LEFT">
+ <token>,</token>
+ </entry>
+ <entry operation="MOVE_LEFT">
+ <token>;</token>
+ </entry>
+ <entry operation="MOVE_LEFT">
+ <token>:</token>
+ </entry>
+ <entry operation="MOVE_RIGHT">
+ <token>(</token>
+ </entry>
+ <entry operation="MOVE_LEFT">
+ <token>)</token>
+ </entry>
+ <entry operation="MOVE_LEFT">
+ <token>}</token>
+ </entry>
+ <entry operation="MOVE_RIGHT">
+ <token>{</token>
+ </entry>
+ <entry operation="MOVE_LEFT">
+ <token>]</token>
+ </entry>
+ <entry operation="MOVE_RIGHT">
+ <token>[</token>
+ </entry>
+ <entry operation="MOVE_RIGHT">
+ <token>``</token>
+ </entry>
+ <entry operation="MOVE_LEFT">
+ <token>''</token>
+ </entry>
+ <entry operation="MOVE_LEFT">
+ <token>%</token>
+ </entry>
+ <entry operation="MOVE_RIGHT">
+ <token>#</token>
+ </entry>
+</dictionary>
\ No newline at end of file