Revision: 18535
http://sourceforge.net/p/gate/code/18535
Author: markagreenwood
Date: 2015-01-15 12:47:23 +0000 (Thu, 15 Jan 2015)
Log Message:
-----------
don't allow feature names to start with a number in inline XML
Modified Paths:
--------------
gate/trunk/src/main/gate/corpora/DocumentImpl.java
Modified: gate/trunk/src/main/gate/corpora/DocumentImpl.java
===================================================================
--- gate/trunk/src/main/gate/corpora/DocumentImpl.java 2015-01-15 12:45:08 UTC
(rev 18534)
+++ gate/trunk/src/main/gate/corpora/DocumentImpl.java 2015-01-15 12:47:23 UTC
(rev 18535)
@@ -2007,11 +2007,9 @@
// Eliminate a feature inserted at reading time and which help to
// take some decissions at saving time
if("isEmptyAndSpan".equals(key.toString())) continue;
- if(!(String.class.isAssignableFrom(key.getClass()) || Number.class
- .isAssignableFrom(key.getClass()))) {
+ if(!String.class.isAssignableFrom(key.getClass())) {
Out.prln("Warning:Found a feature NAME(" + key
- + ") that doesn't came"
- + " from String or Number.(feature discarded)");
+ + ") that isn't a String.(feature discarded)");
continue;
}// End if
if(!(String.class.isAssignableFrom(value.getClass())
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs