Revision: 18094
http://sourceforge.net/p/gate/code/18094
Author: leondz
Date: 2014-06-15 11:43:15 +0000 (Sun, 15 Jun 2014)
Log Message:
-----------
readd pos tagger for 'new PR' option, bump twitter source&target to 1.7
Modified Paths:
--------------
gate/trunk/plugins/Twitter/build.xml
Added Paths:
-----------
gate/trunk/plugins/Twitter/src/gate/twitter/pos/
gate/trunk/plugins/Twitter/src/gate/twitter/pos/POSTaggerEN.java
Modified: gate/trunk/plugins/Twitter/build.xml
===================================================================
--- gate/trunk/plugins/Twitter/build.xml 2014-06-15 11:31:00 UTC (rev
18093)
+++ gate/trunk/plugins/Twitter/build.xml 2014-06-15 11:43:15 UTC (rev
18094)
@@ -53,7 +53,7 @@
<target name="compile" description="Compile Java sources"
depends="prepare">
- <javac srcdir="src" destdir="${classes.dir}" debug="true"
source="1.6" target="1.6" debuglevel="lines,vars,source" deprecation="on"
optimize="off" encoding="UTF-8" classpathref="compile.classpath" />
+ <javac srcdir="src" destdir="${classes.dir}" debug="true"
source="1.7" target="1.7" debuglevel="lines,vars,source" deprecation="on"
optimize="off" encoding="UTF-8" classpathref="compile.classpath" />
</target>
@@ -96,7 +96,7 @@
</target>
<target name="javadoc" depends="doc.prepare" description="Create
Javadoc API documentation">
- <javadoc access="protected" destdir="${javadoc.dir}"
classpathref="compile.classpath" Extdirs="${extDir}" Encoding="UTF-8" Use="yes"
Windowtitle="GATE Twitter JavaDoc" docencoding="UTF-8" charset="UTF-8"
source="1.6" useexternalfile="yes" breakiterator="true" linksource="yes">
+ <javadoc access="protected" destdir="${javadoc.dir}"
classpathref="compile.classpath" Extdirs="${extDir}" Encoding="UTF-8" Use="yes"
Windowtitle="GATE Twitter JavaDoc" docencoding="UTF-8" charset="UTF-8"
source="1.7" useexternalfile="yes" breakiterator="true" linksource="yes">
<fileset dir="${src.dir}" />
<link href="http://docs.oracle.com/javase/6/docs/api/"
/>
<link href="http://gate.ac.uk/gate/doc/javadoc/" />
Added: gate/trunk/plugins/Twitter/src/gate/twitter/pos/POSTaggerEN.java
===================================================================
--- gate/trunk/plugins/Twitter/src/gate/twitter/pos/POSTaggerEN.java
(rev 0)
+++ gate/trunk/plugins/Twitter/src/gate/twitter/pos/POSTaggerEN.java
2014-06-15 11:43:15 UTC (rev 18094)
@@ -0,0 +1,37 @@
+/*
+ * POSTaggerEN.java
+ *
+ * Copyright (c) 2013, The University of Sheffield. See the file COPYRIGHT.txt
+ * in the software or at http://gate.ac.uk/gate/COPYRIGHT.txt
+ *
+ * This file is part of GATE (see http://gate.ac.uk/), and is free software,
+ * licenced under the GNU Library General Public License, Version 2, June 1991
+ * (in the distribution as file licence.html, and also available at
+ * http://gate.ac.uk/gate/licence.html).
+ *
+ * Mark A. Greenwood, 06/09/2013
+ */
+
+package gate.twitter.pos;
+
+import java.net.URL;
+
+import gate.creole.metadata.CreoleParameter;
+import gate.creole.metadata.CreoleResource;
+
+import gate.stanford.Tagger;
+
+@CreoleResource(name = "Twitter POS Tagger (EN)",
+ comment = "Stanford POS tagger trained on Tweets",
+ helpURL = "http://gate.ac.uk/userguide/sec:social:twitter:prs")
+public class POSTaggerEN extends Tagger {
+
+ private static final long serialVersionUID = 5657607888874448666L;
+
+ @Override
+ @CreoleParameter(comment = "Path to the tagger's model file",
+ defaultValue = "resources/pos/gate-EN-twitter.model")
+ public void setModelFile(URL modelFile) {
+ super.setModelFile(modelFile);
+ }
+}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs