Revision: 12028
http://gate.svn.sourceforge.net/gate/?rev=12028&view=rev
Author: ian_roberts
Date: 2009-12-04 17:49:40 +0000 (Fri, 04 Dec 2009)
Log Message:
-----------
Various fixes to OpenNLP PRs:
- All PRs had a single parameter named inputASName. Some of them were using
this set for input, some for output, some for both, and some ignored it
entirely and always used the default set. Cleaned this up to bring them into
line with ANNIE conventions, so that:
- PRs that only input or output annotations (not both) have an
annotationSetName parameter and no input/outputASName.
- The Name Finder has both inputASName and outputASName as it both reads and
writes.
- To load models the PRs took URL-valued parameters but then tried to do new
File(url.getFile()) and then create a FileInputStream in order to load them.
This does not work on all platforms, so I've changed it to do
URL.openStream() directly, which also has the advantage that the parameters
can be non-file: URLs.
- Added a dictionaryEncoding parameter for the POS tagger to make explicit the
encoding used to load the tag dictionary. Previously this was being loaded
by just giving a file name to OpenNLP, which would then load it using the
platform default encoding (which varies between platforms).
- Removed all explicit parameter settings from the opennlp.gapp (leaving empty
<localMap/> elements) so the gapp will not have to be modified with future
creole.xml changes.
Modified Paths:
--------------
gate/trunk/plugins/OpenNLP/creole.xml
gate/trunk/plugins/OpenNLP/resources/opennlp.gapp
gate/trunk/plugins/OpenNLP/src/gate/opennlp/OpenNLPNameFin.java
gate/trunk/plugins/OpenNLP/src/gate/opennlp/OpenNlpChunker.java
gate/trunk/plugins/OpenNLP/src/gate/opennlp/OpenNlpPOS.java
gate/trunk/plugins/OpenNLP/src/gate/opennlp/OpenNlpSentenceSplit.java
gate/trunk/plugins/OpenNLP/src/gate/opennlp/OpenNlpTokenizer.java
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing.
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs