Revision: 16866
http://sourceforge.net/p/gate/code/16866
Author: markagreenwood
Date: 2013-09-09 16:44:12 +0000 (Mon, 09 Sep 2013)
Log Message:
-----------
add an Emoticon annotation as well as combining the tokens
Modified Paths:
--------------
gate/trunk/plugins/Twitter/resources/tokeniser/twitter.jape
Modified: gate/trunk/plugins/Twitter/resources/tokeniser/twitter.jape
===================================================================
--- gate/trunk/plugins/Twitter/resources/tokeniser/twitter.jape 2013-09-09
15:19:40 UTC (rev 16865)
+++ gate/trunk/plugins/Twitter/resources/tokeniser/twitter.jape 2013-09-09
16:44:12 UTC (rev 16866)
@@ -154,6 +154,15 @@
catch (InvalidOffsetException e) {
e.printStackTrace();
}
+
+ FeatureMap params = Factory.newFeatureMap();
+ params.put("normalized",
matchAnnots.iterator().next().getFeatures().get("normalized"));
+ try {
+ outputAS.add(start, end, "Emoticon", params);
+ }
+ catch (InvalidOffsetException e) {
+ e.printStackTrace();
+ }
}
Rule: UserID
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs