You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
(33) |
Nov
(96) |
Dec
(173) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(45) |
Feb
(46) |
Mar
(58) |
Apr
(83) |
May
(11) |
Jun
(62) |
Jul
(79) |
Aug
(62) |
Sep
(42) |
Oct
(105) |
Nov
(57) |
Dec
(73) |
2007 |
Jan
(187) |
Feb
(60) |
Mar
(313) |
Apr
(174) |
May
(74) |
Jun
(99) |
Jul
(132) |
Aug
(62) |
Sep
(65) |
Oct
(83) |
Nov
(63) |
Dec
(41) |
2008 |
Jan
(83) |
Feb
(82) |
Mar
(42) |
Apr
(88) |
May
(68) |
Jun
(67) |
Jul
(37) |
Aug
(69) |
Sep
(52) |
Oct
(85) |
Nov
(65) |
Dec
(49) |
2009 |
Jan
(50) |
Feb
(70) |
Mar
(95) |
Apr
(69) |
May
(122) |
Jun
(44) |
Jul
(217) |
Aug
(397) |
Sep
(307) |
Oct
(302) |
Nov
(131) |
Dec
(104) |
2010 |
Jan
(87) |
Feb
(102) |
Mar
(105) |
Apr
(141) |
May
(110) |
Jun
(85) |
Jul
(80) |
Aug
(110) |
Sep
(56) |
Oct
(63) |
Nov
(65) |
Dec
(45) |
2011 |
Jan
(58) |
Feb
(93) |
Mar
(86) |
Apr
(177) |
May
(82) |
Jun
(182) |
Jul
(91) |
Aug
(72) |
Sep
(70) |
Oct
(124) |
Nov
(154) |
Dec
(251) |
2012 |
Jan
(414) |
Feb
(211) |
Mar
(153) |
Apr
(69) |
May
(139) |
Jun
(50) |
Jul
(80) |
Aug
(48) |
Sep
(61) |
Oct
(101) |
Nov
(192) |
Dec
(52) |
2013 |
Jan
(48) |
Feb
(47) |
Mar
(75) |
Apr
(43) |
May
(32) |
Jun
(14) |
Jul
(39) |
Aug
(80) |
Sep
(128) |
Oct
(77) |
Nov
(105) |
Dec
(61) |
2014 |
Jan
(61) |
Feb
(224) |
Mar
(265) |
Apr
(154) |
May
(130) |
Jun
(88) |
Jul
(98) |
Aug
(57) |
Sep
(81) |
Oct
(58) |
Nov
(57) |
Dec
(34) |
2015 |
Jan
(38) |
Feb
(37) |
Mar
(26) |
Apr
(43) |
May
(73) |
Jun
(76) |
Jul
(38) |
Aug
(44) |
Sep
(39) |
Oct
(51) |
Nov
(36) |
Dec
(41) |
2016 |
Jan
(35) |
Feb
(51) |
Mar
(16) |
Apr
(106) |
May
(121) |
Jun
(58) |
Jul
(40) |
Aug
(71) |
Sep
(53) |
Oct
(100) |
Nov
(127) |
Dec
(66) |
2017 |
Jan
(130) |
Feb
(48) |
Mar
(1) |
Apr
(8) |
May
(16) |
Jun
(19) |
Jul
(12) |
Aug
(4) |
Sep
(2) |
Oct
(2) |
Nov
(4) |
Dec
(3) |
2018 |
Jan
|
Feb
(1) |
Mar
(1) |
Apr
(2) |
May
(3) |
Jun
(3) |
Jul
|
Aug
(1) |
Sep
|
Oct
(1) |
Nov
(2) |
Dec
(1) |
2019 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2022 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(4) |
2023 |
Jan
|
Feb
(2) |
Mar
(1) |
Apr
(2) |
May
(3) |
Jun
|
Jul
|
Aug
(2) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
|
2024 |
Jan
(1) |
Feb
(4) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(2) |
Aug
(4) |
Sep
|
Oct
|
Nov
|
Dec
|
From: <gat...@us...> - 2017-05-11 15:58:14
|
Revision: 20217 http://sourceforge.net/p/gate/code/20217 Author: gate-project Date: 2017-05-11 15:58:11 +0000 (Thu, 11 May 2017) Log Message: ----------- Automatically regenerated by GATEWiki Modified Paths: -------------- gate/trunk/doc/papers.html Modified: gate/trunk/doc/papers.html =================================================================== --- gate/trunk/doc/papers.html 2017-05-11 15:58:02 UTC (rev 20216) +++ gate/trunk/doc/papers.html 2017-05-11 15:58:11 UTC (rev 20217) @@ -105,7 +105,7 @@ <h2 class="cow-heading">Forthcoming / Accepted</h2> <ul> -<li>Diana Maynard, Ian Roberts, Mark A. Greenwood, Dominic Rout and Kalina Bontcheva. A Framework for Real-time Semantic Social Media Analysis. To appear in Web Semantics: Science, Services and Agents on the World Wide Web, 2017. <a class="cow-url" href="nesta.pdf">Pre-print</a></li> +<li>Diana Maynard, Ian Roberts, Mark A. Greenwood, Dominic Rout and Kalina Bontcheva. A Framework for Real-time Semantic Social Media Analysis. To appear in Web Semantics: Science, Services and Agents on the World Wide Web, 2017. <a class="cow-non-existant-url" href="nesta.pdf?m=1">Pre-print</a></li> </ul> <ul> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gat...@us...> - 2017-05-11 15:58:04
|
Revision: 20216 http://sourceforge.net/p/gate/code/20216 Author: gate-project Date: 2017-05-11 15:58:02 +0000 (Thu, 11 May 2017) Log Message: ----------- PageService.deleteFiles called by user diana Removed Paths: ------------- gate/trunk/doc/nesta.pdf Deleted: gate/trunk/doc/nesta.pdf =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gat...@us...> - 2017-05-11 15:57:00
|
Revision: 20215 http://sourceforge.net/p/gate/code/20215 Author: gate-project Date: 2017-05-11 15:56:58 +0000 (Thu, 11 May 2017) Log Message: ----------- [diana] added paper Modified Paths: -------------- gate/trunk/doc/papers.html gate/trunk/doc/papers.yam Modified: gate/trunk/doc/papers.html =================================================================== --- gate/trunk/doc/papers.html 2017-05-11 15:56:10 UTC (rev 20214) +++ gate/trunk/doc/papers.html 2017-05-11 15:56:58 UTC (rev 20215) @@ -105,7 +105,7 @@ <h2 class="cow-heading">Forthcoming / Accepted</h2> <ul> -<li>Diana Maynard, Ian Roberts, Mark A. Greenwood, Dominic Rout and Kalina Bontcheva. A Framework for Real-time Semantic Social Media Analysis. To appear in Web Semantics: Science, Services and Agents on the World Wide Web, 2017.</li> +<li>Diana Maynard, Ian Roberts, Mark A. Greenwood, Dominic Rout and Kalina Bontcheva. A Framework for Real-time Semantic Social Media Analysis. To appear in Web Semantics: Science, Services and Agents on the World Wide Web, 2017. <a class="cow-url" href="nesta.pdf">Pre-print</a></li> </ul> <ul> Modified: gate/trunk/doc/papers.yam =================================================================== --- gate/trunk/doc/papers.yam 2017-05-11 15:56:10 UTC (rev 20214) +++ gate/trunk/doc/papers.yam 2017-05-11 15:56:58 UTC (rev 20215) @@ -47,7 +47,7 @@ %2* Forthcoming / Accepted -- Diana Maynard, Ian Roberts, Mark A. Greenwood, Dominic Rout and Kalina Bontcheva. A Framework for Real-time Semantic Social Media Analysis. To appear in Web Semantics: Science, Services and Agents on the World Wide Web, 2017. +- Diana Maynard, Ian Roberts, Mark A. Greenwood, Dominic Rout and Kalina Bontcheva. A Framework for Real-time Semantic Social Media Analysis. To appear in Web Semantics: Science, Services and Agents on the World Wide Web, 2017. %(nesta.pdf, Pre-print) - Diana Maynard, Adam Funk and Benedetto Lepori. Towards an Infrastructure for Understanding and Interlinking Knowledge Co-Creation in European research. To appear in ESWC 2017 Workshop on Scientometrics, Portoroz, Slovenia, May 2017. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gat...@us...> - 2017-05-11 15:56:12
|
Revision: 20214 http://sourceforge.net/p/gate/code/20214 Author: gate-project Date: 2017-05-11 15:56:10 +0000 (Thu, 11 May 2017) Log Message: ----------- CoW upload Added Paths: ----------- gate/trunk/doc/nesta.pdf Added: gate/trunk/doc/nesta.pdf =================================================================== (Binary files differ) Index: gate/trunk/doc/nesta.pdf =================================================================== --- gate/trunk/doc/nesta.pdf 2017-05-09 10:42:57 UTC (rev 20213) +++ gate/trunk/doc/nesta.pdf 2017-05-11 15:56:10 UTC (rev 20214) Property changes on: gate/trunk/doc/nesta.pdf ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +application/octet-stream \ No newline at end of property This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gat...@us...> - 2017-05-09 10:43:00
|
Revision: 20213 http://sourceforge.net/p/gate/code/20213 Author: gate-project Date: 2017-05-09 10:42:57 +0000 (Tue, 09 May 2017) Log Message: ----------- [diana] more papers, woohoo Modified Paths: -------------- gate/trunk/doc/papers.html gate/trunk/doc/papers.yam Modified: gate/trunk/doc/papers.html =================================================================== --- gate/trunk/doc/papers.html 2017-05-01 07:52:30 UTC (rev 20212) +++ gate/trunk/doc/papers.html 2017-05-09 10:42:57 UTC (rev 20213) @@ -104,6 +104,9 @@ <a class="cow-section-anchor" name="section-1."></a><h1 class="cow-heading"><span class="cow-sec-number">1. </span>Books, Book Chapters, Journals and Conference papers</h1> <h2 class="cow-heading">Forthcoming / Accepted</h2> +<ul> +<li>Diana Maynard, Ian Roberts, Mark A. Greenwood, Dominic Rout and Kalina Bontcheva. A Framework for Real-time Semantic Social Media Analysis. To appear in Web Semantics: Science, Services and Agents on the World Wide Web, 2017.</li> +</ul> <ul> <li>Diana Maynard, Adam Funk and Benedetto Lepori. Towards an Infrastructure for Understanding and Interlinking Knowledge Co-Creation in European research. To appear in ESWC 2017 Workshop on Scientometrics, Portoroz, Slovenia, May 2017.</li> Modified: gate/trunk/doc/papers.yam =================================================================== --- gate/trunk/doc/papers.yam 2017-05-01 07:52:30 UTC (rev 20212) +++ gate/trunk/doc/papers.yam 2017-05-09 10:42:57 UTC (rev 20213) @@ -47,6 +47,7 @@ %2* Forthcoming / Accepted +- Diana Maynard, Ian Roberts, Mark A. Greenwood, Dominic Rout and Kalina Bontcheva. A Framework for Real-time Semantic Social Media Analysis. To appear in Web Semantics: Science, Services and Agents on the World Wide Web, 2017. - Diana Maynard, Adam Funk and Benedetto Lepori. Towards an Infrastructure for Understanding and Interlinking Knowledge Co-Creation in European research. To appear in ESWC 2017 Workshop on Scientometrics, Portoroz, Slovenia, May 2017. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <joh...@us...> - 2017-05-01 07:52:33
|
Revision: 20212 http://sourceforge.net/p/gate/code/20212 Author: johann_p Date: 2017-05-01 07:52:30 +0000 (Mon, 01 May 2017) Log Message: ----------- Point to renamed directory and new version. Modified Paths: -------------- gate/trunk/build/deploy/plugins/gate-8.1.xml Modified: gate/trunk/build/deploy/plugins/gate-8.1.xml =================================================================== --- gate/trunk/build/deploy/plugins/gate-8.1.xml 2017-04-27 19:09:41 UTC (rev 20211) +++ gate/trunk/build/deploy/plugins/gate-8.1.xml 2017-05-01 07:52:30 UTC (rev 20212) @@ -37,8 +37,8 @@ downloadURL="https://github.com/GateNLP/gateplugin-Tagger_SyntaxNet/releases/download/V0_2/gateplugin-Tagger_SyntaxNet-0.2.zip" /> <CreolePlugin - url="https://raw.githubusercontent.com/GateNLP/gateplugin-Lemmatizer/V0_2/" - downloadURL="https://github.com/GateNLP/gateplugin-Lemmatizer/releases/download/V0_2/gateplugin-Lemmatizer-0.2.zip" + url="https://raw.githubusercontent.com/GateNLP/gateplugin-dict-lemmatizer/V0_4/" + downloadURL="https://github.com/GateNLP/gateplugin-dict-lemmatizer/releases/download/V0_4/gateplugin-dict-lemmatizer-0.4.zip" /> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gat...@us...> - 2017-04-27 19:09:43
|
Revision: 20211 http://sourceforge.net/p/gate/code/20211 Author: gate-project Date: 2017-04-27 19:09:41 +0000 (Thu, 27 Apr 2017) Log Message: ----------- [leon] fill out '17 content Modified Paths: -------------- gate/trunk/doc/papers.html gate/trunk/doc/papers.yam Modified: gate/trunk/doc/papers.html =================================================================== --- gate/trunk/doc/papers.html 2017-04-20 16:20:20 UTC (rev 20210) +++ gate/trunk/doc/papers.html 2017-04-27 19:09:41 UTC (rev 20211) @@ -116,17 +116,27 @@ <ul> <li>K. Bontcheva, L. Derczynski, I. Roberts. Crowdsourcing Named Entity Recognition and Entity Linking Corpora. In Nancy Ide and James Pustejovsky, eds.: The Handbook of Linguistic Annotation.</li> </ul> -<h2 class="cow-heading">2016</h2> +<h2 class="cow-heading">2017</h2> <ul> -<li>Diana Maynard, Kalina Bontcheva, Isabelle Augenstein. Natural Language Processing for the Semantic Web. Morgan and Claypool, December 2016. ISBN: 9781627059091 <a class="cow-url" href="http://www.morganclaypoolpublishers.com/catalog_Orig/product_info.php?cPath=22&products_id=1009&osCsid=le7c1fi17uo88v0j8eco2emtu4">Morgan and Claypool link</a></li> +<li>L. Derczynski. Automatically Ordering Events and Times in Text. Studies in Computational Intelligence 677. Springer. <a class="cow-url" href="http://link.springer.com/book/10.1007/978-3-319-47241-6">online version</a></li> </ul> <ul> -<li>L. Derczynski. Automatically Ordering Events and Times in Text. Studies in Computational Intelligence 677. Springer. <a class="cow-url" href="http://link.springer.com/book/10.1007/978-3-319-47241-6">online version</a></li> +<li>Isabelle Augenstein, Leon Derczynski, Kalina Bontcheva. 2017. Generalisation in Named Entity Recognition: A Quantitative Analysis. In Computer Speech and Language, Elsevier. <a class="cow-url" href="https://arxiv.org/pdf/1701.02877v1.pdf">PDF</a></li> </ul> <ul> +<li>Leon Derczynski, Kalina Bontcheva, Maria Liakata, Rob Procter, Geraldine Wong Sak Hoi, Arkaitz Zubiaga. 2017. SemEval-2017 Task 8: RumourEval: Determining rumour veracity and support for rumours. In 10th International Workshop on Semantic Evaluation (SemEval 2017), ACL. <a class="cow-url" href="http://www.derczynski.com/sheffield/papers/rumoureval-task.pdf">PDF</a></li> +</ul> + +<h2 class="cow-heading">2016</h2> + +<ul> +<li>Diana Maynard, Kalina Bontcheva, Isabelle Augenstein. Natural Language Processing for the Semantic Web. Morgan and Claypool, December 2016. ISBN: 9781627059091 <a class="cow-url" href="http://www.morganclaypoolpublishers.com/catalog_Orig/product_info.php?cPath=22&products_id=1009&osCsid=le7c1fi17uo88v0j8eco2emtu4">Morgan and Claypool link</a></li> +</ul> + +<ul> <li>L. Derczynski, K. Bontcheva, I. Roberts. Broad Twitter Corpus: A Diverse Named Entity Recognition Resource. In Proc. of the Int'l Conference on Computational Linguistics (COLING). <a class="cow-url" href="http://www.derczynski.com/sheffield/papers/btc.pdf">PDF</a></li> </ul> Modified: gate/trunk/doc/papers.yam =================================================================== --- gate/trunk/doc/papers.yam 2017-04-20 16:20:20 UTC (rev 20210) +++ gate/trunk/doc/papers.yam 2017-04-27 19:09:41 UTC (rev 20211) @@ -54,12 +54,19 @@ - K. Bontcheva, L. Derczynski, I. Roberts. Crowdsourcing Named Entity Recognition and Entity Linking Corpora. In Nancy Ide and James Pustejovsky, eds.: The Handbook of Linguistic Annotation. +%2* 2017 + +- L. Derczynski. Automatically Ordering Events and Times in Text. Studies in Computational Intelligence 677. Springer. %(http://link.springer.com/book/10.1007/978-3-319-47241-6, online version) + +- Isabelle Augenstein, Leon Derczynski, Kalina Bontcheva. 2017. Generalisation in Named Entity Recognition: A Quantitative Analysis. In Computer Speech and Language, Elsevier. %(https://arxiv.org/pdf/1701.02877v1.pdf, PDF) + +- Leon Derczynski, Kalina Bontcheva, Maria Liakata, Rob Procter, Geraldine Wong Sak Hoi, Arkaitz Zubiaga. 2017. SemEval-2017 Task 8: RumourEval: Determining rumour veracity and support for rumours. In 10th International Workshop on Semantic Evaluation (SemEval 2017), ACL. %(http://www.derczynski.com/sheffield/papers/rumoureval-task.pdf, PDF) + + %2* 2016 - Diana Maynard, Kalina Bontcheva, Isabelle Augenstein. Natural Language Processing for the Semantic Web. Morgan and Claypool, December 2016. ISBN: 9781627059091 %(http://www.morganclaypoolpublishers.com/catalog_Orig/product_info.php?cPath=22&products_id=1009&osCsid=le7c1fi17uo88v0j8eco2emtu4, Morgan and Claypool link) -- L. Derczynski. Automatically Ordering Events and Times in Text. Studies in Computational Intelligence 677. Springer. %(http://link.springer.com/book/10.1007/978-3-319-47241-6, online version) - - L. Derczynski, K. Bontcheva, I. Roberts. Broad Twitter Corpus: A Diverse Named Entity Recognition Resource. In Proc. of the Int'l Conference on Computational Linguistics (COLING). %(http://www.derczynski.com/sheffield/papers/btc.pdf, PDF) - L. Derczynski. Representation and Learning of Temporal Relations. In Proc. of the Int'l Conference on Computational Linguistics (COLING). %(http://www.derczynski.com/sheffield/papers/temp-reltype-repr.pdf, PDF) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gat...@us...> - 2017-04-20 16:20:22
|
Revision: 20210 http://sourceforge.net/p/gate/code/20210 Author: gate-project Date: 2017-04-20 16:20:20 +0000 (Thu, 20 Apr 2017) Log Message: ----------- [Genevieve] Oops typo. Modified Paths: -------------- gate/trunk/doc/papers.html gate/trunk/doc/papers.yam Modified: gate/trunk/doc/papers.html =================================================================== --- gate/trunk/doc/papers.html 2017-04-20 15:58:32 UTC (rev 20209) +++ gate/trunk/doc/papers.html 2017-04-20 16:20:20 UTC (rev 20210) @@ -186,7 +186,7 @@ </ul> <ul> -<li>G. Gorrell, J. Petrak and K. Bontcheva. LOD-based Disambiguation of Named Entities in @tweets through Context #enrichment. In Proceedings of ESWC, June 2015, Portoroz, Slovenia. <a class="cow-url" href="https://gate.ac.uk/sale/eswc2015/twitter-expansion-for-ned-final-version.pdf">PDF</a></li> +<li>G. Gorrell, J. Petrak and K. Bontcheva. LOD-based Disambiguation of Named Entities in @tweets through Context #enrichment. In Proceedings of ESWC, June 2015, Portoroz, Slovenia. <a class="cow-url" href="https://gate.ac.uk/sale/eswc15/twitter-expansion-for-ned-final-version.pdf">PDF</a></li> </ul> <ul> Modified: gate/trunk/doc/papers.yam =================================================================== --- gate/trunk/doc/papers.yam 2017-04-20 15:58:32 UTC (rev 20209) +++ gate/trunk/doc/papers.yam 2017-04-20 16:20:20 UTC (rev 20210) @@ -92,7 +92,7 @@ - D. Maynard, M. A. Greenwood, I. Roberts, G. Windsor, K. Bontcheva. Real-time Social Media Analytics through Semantic Annotation and Linked Open Data. Proceedings of WebSci 2015, Oxford, UK. %(https://gate.ac.uk/sale/websci2015/nesta-paper/nesta-short.pdf, PDF) -- G. Gorrell, J. Petrak and K. Bontcheva. LOD-based Disambiguation of Named Entities in @tweets through Context #enrichment. In Proceedings of ESWC, June 2015, Portoroz, Slovenia. %(https://gate.ac.uk/sale/eswc2015/twitter-expansion-for-ned-final-version.pdf, PDF) +- G. Gorrell, J. Petrak and K. Bontcheva. LOD-based Disambiguation of Named Entities in @tweets through Context #enrichment. In Proceedings of ESWC, June 2015, Portoroz, Slovenia. %(https://gate.ac.uk/sale/eswc15/twitter-expansion-for-ned-final-version.pdf, PDF) - K. Bontcheva, J. Kieniewicz, S. Andrews and M. Wallis. Semantic Enrichment and Search: A Case Study on Environmental Science Literature. In D-Lib Magazine, Vol 21, Number 1/2, Jan/Feb 2015. %(http://www.dlib.org/dlib/january15/bontcheva/01bontcheva.html, HTML). This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gat...@us...> - 2017-04-20 15:58:34
|
Revision: 20209 http://sourceforge.net/p/gate/code/20209 Author: gate-project Date: 2017-04-20 15:58:32 +0000 (Thu, 20 Apr 2017) Log Message: ----------- [Genevieve] Added ESWC 2015 twitter paper. Removed ancient ML ref. Sorry we don't have anything to replace it but I think nothing is better than confusingly out of date. Modified Paths: -------------- gate/trunk/doc/papers.html gate/trunk/doc/papers.yam Modified: gate/trunk/doc/papers.html =================================================================== --- gate/trunk/doc/papers.html 2017-04-19 08:35:28 UTC (rev 20208) +++ gate/trunk/doc/papers.html 2017-04-20 15:58:32 UTC (rev 20209) @@ -77,11 +77,6 @@ <ul> <li>K. Bontcheva, L. Derczynski, A. Funk, M.A. Greenwood, D. Maynard, N. Aswani. TwitIE: An Open-Source Information Extraction Pipeline for Microblog Text. Proceedings of the International Conference on Recent Advances in Natural Language Processing (RANLP 2013). <a class="cow-url" href="https://gate.ac.uk/sale/ranlp2013/twitie/twitie-ranlp2013.pdf">PDF</a>, <a class="cow-url" href="https://gate.ac.uk/wiki/twitie.html">Download TwitIE</a></li> </ul> -<h3 class="cow-heading">I used the machine learning facilities in GATE:</h3> - - <ul> - <li>Y. Li, K. Bontcheva and H. Cunningham. Adapting SVM for Data Sparseness and Imbalance: A Case Study on Information Extraction. Natural Language Engineering, 15(02), 241-271, 2009. <a class="cow-url" href="http://journals.cambridge.org/repo_A45LfkBD">On-line Link</a>. <a class="cow-url" href="../../sale/nle-svm/svm-ie-nle-revision.pdf">Pre-print</a>, <a class="cow-url" href="bibtex.html#Li2009">BibTeX</a>.</li> - </ul> <h3 class="cow-heading">I used the ontology features in GATE:</h3> <ul> @@ -191,7 +186,7 @@ </ul> <ul> -<li>G. Gorrell, J. Petrak and K. Bontcheva. LOD-based Disambiguation of Named Entities in @tweets through Context #enrichment. In Proceedings of ESWC, June 2015, Portoroz, Slovenia.</li> +<li>G. Gorrell, J. Petrak and K. Bontcheva. LOD-based Disambiguation of Named Entities in @tweets through Context #enrichment. In Proceedings of ESWC, June 2015, Portoroz, Slovenia. <a class="cow-url" href="https://gate.ac.uk/sale/eswc2015/twitter-expansion-for-ned-final-version.pdf">PDF</a></li> </ul> <ul> Modified: gate/trunk/doc/papers.yam =================================================================== --- gate/trunk/doc/papers.yam 2017-04-19 08:35:28 UTC (rev 20208) +++ gate/trunk/doc/papers.yam 2017-04-20 15:58:32 UTC (rev 20209) @@ -28,10 +28,6 @@ - K. Bontcheva, L. Derczynski, A. Funk, M.A. Greenwood, D. Maynard, N. Aswani. TwitIE: An Open-Source Information Extraction Pipeline for Microblog Text. Proceedings of the International Conference on Recent Advances in Natural Language Processing (RANLP 2013). %(https://gate.ac.uk/sale/ranlp2013/twitie/twitie-ranlp2013.pdf, PDF), %(https://gate.ac.uk/wiki/twitie.html, Download TwitIE) -%3* I used the machine learning facilities in GATE: - - - Y. Li, K. Bontcheva and H. Cunningham. Adapting SVM for Data Sparseness and Imbalance: A Case Study on Information Extraction. Natural Language Engineering, 15(02), 241-271, 2009. %(http://journals.cambridge.org/repo_A45LfkBD,On-line Link). %(../../sale/nle-svm/svm-ie-nle-revision.pdf,Pre-print), %(bibtex.html#Li2009, BibTeX). - %3* I used the ontology features in GATE: - K. Bontcheva, V. Tablan, D. Maynard, H. Cunningham. Evolving GATE to Meet New Challenges in Language Engineering. Natural Language Engineering. 10 (3/4), pp. 349-373. 2004. %(../../sale/jnle03/jnle-final.pdf,Pre-print). %(bibtex.html#Bontcheva2004, BibTeX). @@ -96,7 +92,7 @@ - D. Maynard, M. A. Greenwood, I. Roberts, G. Windsor, K. Bontcheva. Real-time Social Media Analytics through Semantic Annotation and Linked Open Data. Proceedings of WebSci 2015, Oxford, UK. %(https://gate.ac.uk/sale/websci2015/nesta-paper/nesta-short.pdf, PDF) -- G. Gorrell, J. Petrak and K. Bontcheva. LOD-based Disambiguation of Named Entities in @tweets through Context #enrichment. In Proceedings of ESWC, June 2015, Portoroz, Slovenia. +- G. Gorrell, J. Petrak and K. Bontcheva. LOD-based Disambiguation of Named Entities in @tweets through Context #enrichment. In Proceedings of ESWC, June 2015, Portoroz, Slovenia. %(https://gate.ac.uk/sale/eswc2015/twitter-expansion-for-ned-final-version.pdf, PDF) - K. Bontcheva, J. Kieniewicz, S. Andrews and M. Wallis. Semantic Enrichment and Search: A Case Study on Environmental Science Literature. In D-Lib Magazine, Vol 21, Number 1/2, Jan/Feb 2015. %(http://www.dlib.org/dlib/january15/bontcheva/01bontcheva.html, HTML). This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <do...@us...> - 2017-04-19 08:35:31
|
Revision: 20208 http://sourceforge.net/p/gate/code/20208 Author: domrout Date: 2017-04-19 08:35:28 +0000 (Wed, 19 Apr 2017) Log Message: ----------- Add getters for query parts so we can implement serialisation outside of the same package Modified Paths: -------------- mimir/trunk/mimir-core/src/gate/mimir/search/query/AbstractOverlapQuery.java mimir/trunk/mimir-core/src/gate/mimir/search/query/MinusQuery.java mimir/trunk/mimir-core/src/gate/mimir/search/query/RepeatsQuery.java mimir/trunk/mimir-core/src/gate/mimir/search/query/SequenceQuery.java mimir/trunk/mimir-core/src/gate/mimir/search/query/TermQuery.java Modified: mimir/trunk/mimir-core/src/gate/mimir/search/query/AbstractOverlapQuery.java =================================================================== --- mimir/trunk/mimir-core/src/gate/mimir/search/query/AbstractOverlapQuery.java 2017-04-18 15:04:37 UTC (rev 20207) +++ mimir/trunk/mimir-core/src/gate/mimir/search/query/AbstractOverlapQuery.java 2017-04-19 08:35:28 UTC (rev 20208) @@ -243,4 +243,11 @@ */ protected QueryNode outerQuery; + public QueryNode getInnerQuery() { + return innerQuery; + } + + public QueryNode getOuterQuery() { + return outerQuery; + } } Modified: mimir/trunk/mimir-core/src/gate/mimir/search/query/MinusQuery.java =================================================================== --- mimir/trunk/mimir-core/src/gate/mimir/search/query/MinusQuery.java 2017-04-18 15:04:37 UTC (rev 20207) +++ mimir/trunk/mimir-core/src/gate/mimir/search/query/MinusQuery.java 2017-04-19 08:35:28 UTC (rev 20208) @@ -170,4 +170,12 @@ return "MINUS (\nLEFT:" + left.toString() + ",\nRIGHT:" + right.toString() +"\n)"; } + + public QueryNode getLeft() { + return left; + } + + public QueryNode getRight() { + return right; + } } Modified: mimir/trunk/mimir-core/src/gate/mimir/search/query/RepeatsQuery.java =================================================================== --- mimir/trunk/mimir-core/src/gate/mimir/search/query/RepeatsQuery.java 2017-04-18 15:04:37 UTC (rev 20207) +++ mimir/trunk/mimir-core/src/gate/mimir/search/query/RepeatsQuery.java 2017-04-19 08:35:28 UTC (rev 20208) @@ -334,4 +334,15 @@ max + "])"; } + public int getMin() { + return min; + } + + public int getMax() { + return max; + } + + public QueryNode getWrappedQuery() { + return wrappedQuery; + } } Modified: mimir/trunk/mimir-core/src/gate/mimir/search/query/SequenceQuery.java =================================================================== --- mimir/trunk/mimir-core/src/gate/mimir/search/query/SequenceQuery.java 2017-04-18 15:04:37 UTC (rev 20207) +++ mimir/trunk/mimir-core/src/gate/mimir/search/query/SequenceQuery.java 2017-04-19 08:35:28 UTC (rev 20208) @@ -81,7 +81,14 @@ else if(end > start + max + 1) return 1; else return 0; } - + + public int getMin() { + return min; + } + + public int getMax() { + return max; + } } public static class SequenceQueryExecutor extends AbstractIntersectionQueryExecutor{ @@ -632,4 +639,8 @@ return str.toString(); } + public Gap[] getGaps() { + return gaps; + } + } Modified: mimir/trunk/mimir-core/src/gate/mimir/search/query/TermQuery.java =================================================================== --- mimir/trunk/mimir-core/src/gate/mimir/search/query/TermQuery.java 2017-04-18 15:04:37 UTC (rev 20207) +++ mimir/trunk/mimir-core/src/gate/mimir/search/query/TermQuery.java 2017-04-19 08:35:28 UTC (rev 20208) @@ -475,4 +475,11 @@ ":" + term + ")"; } + public IndexType getIndexType() { + return indexType; + } + + public int getLength() { + return length; + } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <joh...@us...> - 2017-04-18 15:04:39
|
Revision: 20207 http://sourceforge.net/p/gate/code/20207 Author: johann_p Date: 2017-04-18 15:04:37 +0000 (Tue, 18 Apr 2017) Log Message: ----------- Make the -i option understand both directories and files. If the file specified for the -i option is a directory, everything is as it was before: the documents within that directory and all subdirectories are processed. If the file is not a directory, it is assumed to be a file listing all the relative paths of documents to process, where the relative paths are expected to be relative to the directory containing the list file. The same relative paths are used for creating the output documents relative to the output directory, if specified. Modified Paths: -------------- gcp/trunk/doc/gcp-guide.pdf gcp/trunk/doc/install-and-run.tex gcp/trunk/gcp-direct.sh gcp/trunk/src/gate/cloud/batch/BatchRunner.java Modified: gcp/trunk/doc/gcp-guide.pdf =================================================================== (Binary files differ) Modified: gcp/trunk/doc/install-and-run.tex =================================================================== --- gcp/trunk/doc/install-and-run.tex 2017-04-11 15:11:32 UTC (rev 20206) +++ gcp/trunk/doc/install-and-run.tex 2017-04-18 15:04:37 UTC (rev 20207) @@ -140,11 +140,16 @@ (GATE XML format) or ``finf'' (FastInfoset format). To use FastInfoset the GATE \verb!Format_FastInfoset! plugin must be loaded by the saved application. -\item[-i] the directory in which to look for the input files. All files in +\item[-i] the directory in which to look for the input files or a file that contains + relative path names to the input files. If this points to a directory, all files in this directory and any subdirectories will be processed (except for standard backup and temporary file name patterns and source control metadata -- see \url{http://ant.apache.org/manual/dirtasks.html#defaultexcludes} for - details). + details). If this points to a file, the content of the file is expected to be + one relative file path per line, using UTF-8 encoding. The file paths are + interpreted to be relative to the directory that contains the list file. + If processed documents are written, then this will also be their relative + path to the output directory. \item[-o] (optional) the directory in which to place the output files. Each input file will generate an output file with the same name in the output directory. If this option is missing, and the option \texttt{-b} is missing as well, Modified: gcp/trunk/gcp-direct.sh =================================================================== --- gcp/trunk/gcp-direct.sh 2017-04-11 15:11:32 UTC (rev 20206) +++ gcp/trunk/gcp-direct.sh 2017-04-18 15:04:37 UTC (rev 20207) @@ -81,5 +81,6 @@ fi shift done - +echo JVM parameters used ${jvmparams[@]} +echo GCP parameters used ${gcpparams[@]} "$JAVA_HOME/bin/java" -Dgcp.home="${SCRIPTDIR}" -Djava.protocol.handler.pkgs=gate.cloud.util.protocols -cp "${GCP_CLASSPATH}" "${jvmparams[@]}" gate.cloud.batch.BatchRunner "${gcpparams[@]}" Modified: gcp/trunk/src/gate/cloud/batch/BatchRunner.java =================================================================== --- gcp/trunk/src/gate/cloud/batch/BatchRunner.java 2017-04-11 15:11:32 UTC (rev 20206) +++ gcp/trunk/src/gate/cloud/batch/BatchRunner.java 2017-04-18 15:04:37 UTC (rev 20207) @@ -56,6 +56,8 @@ import org.apache.log4j.Logger; import com.sun.jna.Platform; +import static gate.cloud.io.IOConstants.PARAM_BATCH_FILE_LOCATION; +import gate.cloud.io.ListDocumentEnumerator; import static gate.cloud.io.IOConstants.PARAM_COMPRESSION; import static gate.cloud.io.IOConstants.PARAM_DOCUMENT_ROOT; import static gate.cloud.io.IOConstants.PARAM_ENCODING; @@ -64,6 +66,7 @@ import static gate.cloud.io.IOConstants.VALUE_COMPRESSION_GZIP; import static gate.cloud.io.IOConstants.VALUE_COMPRESSION_NONE; import static gate.cloud.io.IOConstants.VALUE_COMPRESSION_SNAPPY; +import static gate.cloud.io.ListDocumentEnumerator.PARAM_FILE_NAME; import gate.cloud.io.file.JSONOutputHandler; import static gate.cloud.io.file.JSONOutputHandler.PARAM_ANNOTATION_TYPE_PROPERTY; import static gate.cloud.io.file.JSONOutputHandler.PARAM_GROUP_ENTITIES_BY; @@ -520,7 +523,7 @@ // TODO: may be useful to be able to override the default user config and // session files here? options.addOption("b","batchFile",true,"Batch file (required, replaces -i, -o, -x, -r, -I)"); - options.addOption("i","inputDirectory",true,"Input directory (required, unless -b given)"); + options.addOption("i","inputDirectoryOrFile",true,"Input directory or file listing document IDs (required, unless -b given)"); options.addOption("f","outputFormat",true,"Output format, optional, one of 'xml'|'gatexml', 'finf', 'ser', 'json', default is 'finf'"); options.addOption("o","outputDirectory",true,"Output directory (not output if missing)"); options.addOption("x","executePipeline",true,"Pipeline/application file to execute (required, unless -b given)"); @@ -710,10 +713,24 @@ } else { aBatch.setBatchId("GcpBatchId"); } - // set the input Handler + // set the input Handler, depending on the value of the option "i": + // If this points to a directory, we process all matching files in that + // directory, if it points to a file we process all files listed in + // that file by interpreting each line as a file path relative to + // the directory where the specified file is located in. + String fileOrDir = line.getOptionValue('i'); + File fileOrDirFile = new File(fileOrDir); + if(!fileOrDirFile.exists()) { + throw new RuntimeException("ERROR file or directory does not exist: "+fileOrDirFile.getAbsolutePath()); + } String inputHandlerClassName = "gate.cloud.io.file.FileInputHandler"; Map<String,String> configData = new HashMap<String, String>(); - configData.put(PARAM_DOCUMENT_ROOT, line.getOptionValue('i')); + if(fileOrDirFile.isDirectory()) { + configData.put(PARAM_DOCUMENT_ROOT, fileOrDir); + } else { + // if we have a file, use the parent directory + configData.put(PARAM_DOCUMENT_ROOT, fileOrDirFile.getParent()); + } if(line.hasOption("ci")) { configData.put(PARAM_COMPRESSION,VALUE_COMPRESSION_GZIP); } else if(line.hasOption("si")) { @@ -781,18 +798,33 @@ outHandler.init(); // log.info("Have output handler: "+outHandler); outHandlers.add(outHandler); - } // if option -o is given + } else { // if option -o is given + log.info("WARNING: no option -o, processed documents are discarded!"); + } aBatch.setOutputHandlers(outHandlers); - String enumeratorClassName = "gate.cloud.io.file.FileDocumentEnumerator"; + String enumeratorClassName = null; + configData = new HashMap<String, String>(); + if(fileOrDirFile.isDirectory()) { + log.info("Enumerating all file IDs in directory: "+fileOrDirFile.getAbsolutePath()); + enumeratorClassName = "gate.cloud.io.file.FileDocumentEnumerator"; + configData.put(PARAM_DOCUMENT_ROOT, line.getOptionValue('i')); + } else { + log.info("Reading file IDs from file: "+fileOrDirFile.getAbsolutePath()); + enumeratorClassName = "gate.cloud.io.ListDocumentEnumerator"; + configData.put(PARAM_BATCH_FILE_LOCATION,new File(".").getAbsolutePath()); + configData.put(PARAM_FILE_NAME, fileOrDir); + configData.put(PARAM_ENCODING,"UTF-8"); + } Class<? extends DocumentEnumerator> enumeratorClass = Class.forName(enumeratorClassName, true, Gate.getClassLoader()) .asSubclass(DocumentEnumerator.class); - configData = new HashMap<String, String>(); - configData.put(PARAM_DOCUMENT_ROOT, line.getOptionValue('i')); - List<DocumentID> docIds = new LinkedList<DocumentID>(); DocumentEnumerator enumerator = enumeratorClass.newInstance(); enumerator.config(configData); enumerator.init(); + // TODO: this should really not be done like this! + // Instead of reading the docIds in all at once, they should + // get streamed to the workers on demand, if at all possible? + List<DocumentID> docIds = new LinkedList<DocumentID>(); while(enumerator.hasNext()) { DocumentID id = enumerator.next(); // log.info("Adding document: "+id); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gat...@us...> - 2017-04-11 15:11:34
|
Revision: 20206 http://sourceforge.net/p/gate/code/20206 Author: gate-project Date: 2017-04-11 15:11:32 +0000 (Tue, 11 Apr 2017) Log Message: ----------- [diana] another paper added Modified Paths: -------------- gate/trunk/doc/papers.html gate/trunk/doc/papers.yam Modified: gate/trunk/doc/papers.html =================================================================== --- gate/trunk/doc/papers.html 2017-04-05 08:25:42 UTC (rev 20205) +++ gate/trunk/doc/papers.html 2017-04-11 15:11:32 UTC (rev 20206) @@ -110,6 +110,9 @@ <h2 class="cow-heading">Forthcoming / Accepted</h2> +<ul> +<li>Diana Maynard, Adam Funk and Benedetto Lepori. Towards an Infrastructure for Understanding and Interlinking Knowledge Co-Creation in European research. To appear in ESWC 2017 Workshop on Scientometrics, Portoroz, Slovenia, May 2017.</li> +</ul> <ul> <li>V. Tablan, K. Bontcheva, I. Roberts, and H. Cunningham. Mímir: An open-source semantic search framework for interactive information seeking and discovery. Journal of Web Semantics: Science, Services and Agents on the World Wide Web, 2014. <a class="cow-url" href="http://dx.doi.org/10.1016/j.websem.2014.10.002">doi:10.1016/j.websem.2014.10.002</a> <span class="cow-footnote" name="footnote1"><sup><a href="#footnote1">1</a></sup></span></li> Modified: gate/trunk/doc/papers.yam =================================================================== --- gate/trunk/doc/papers.yam 2017-04-05 08:25:42 UTC (rev 20205) +++ gate/trunk/doc/papers.yam 2017-04-11 15:11:32 UTC (rev 20206) @@ -52,6 +52,7 @@ %2* Forthcoming / Accepted +- Diana Maynard, Adam Funk and Benedetto Lepori. Towards an Infrastructure for Understanding and Interlinking Knowledge Co-Creation in European research. To appear in ESWC 2017 Workshop on Scientometrics, Portoroz, Slovenia, May 2017. - V. Tablan, K. Bontcheva, I. Roberts, and H. Cunningham. Mímir: An open-source semantic search framework for interactive information seeking and discovery. Journal of Web Semantics: Science, Services and Agents on the World Wide Web, 2014. %(http://dx.doi.org/10.1016/j.websem.2014.10.002, doi:10.1016/j.websem.2014.10.002) %footnote(Published online but not yet assigned to a specific volume and issue.) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <do...@us...> - 2017-04-05 08:25:44
|
Revision: 20205 http://sourceforge.net/p/gate/code/20205 Author: domrout Date: 2017-04-05 08:25:42 +0000 (Wed, 05 Apr 2017) Log Message: ----------- Actually commit the new version of WebUtils Added Paths: ----------- mimir/trunk/mimir-client/src/gate/mimir/tool/WebUtils.java Added: mimir/trunk/mimir-client/src/gate/mimir/tool/WebUtils.java =================================================================== --- mimir/trunk/mimir-client/src/gate/mimir/tool/WebUtils.java (rev 0) +++ mimir/trunk/mimir-client/src/gate/mimir/tool/WebUtils.java 2017-04-05 08:25:42 UTC (rev 20205) @@ -0,0 +1,507 @@ +/* + * WebUtils.java + * + * Copyright (c) 2007-2011, The University of Sheffield. + * + * This file is part of GATE Mímir (see http://gate.ac.uk/family/mimir.html), + * and is free software, licenced under the GNU Lesser General Public License, + * Version 3, June 2007 (also included with this distribution as file + * LICENCE-LGPL3.html). + * + * Dominic Rout 5 Apr 2017 + * Valentin Tablan, 29 Jan 2010 + * + * $Id: WebUtils.java 17423 2014-02-26 10:36:54Z valyt $ + */ +package gate.mimir.tool; + +import org.apache.http.auth.AuthScope; +import org.apache.http.auth.UsernamePasswordCredentials; +import org.apache.http.client.CookieStore; +import org.apache.http.client.CredentialsProvider; +import org.apache.http.client.config.CookieSpecs; +import org.apache.http.client.config.RequestConfig; +import org.apache.http.client.methods.CloseableHttpResponse; +import org.apache.http.client.methods.HttpGet; +import org.apache.http.client.methods.HttpPost; +import org.apache.http.client.methods.HttpUriRequest; +import org.apache.http.client.protocol.HttpClientContext; +import org.apache.http.client.utils.URIBuilder; +import org.apache.http.entity.ByteArrayEntity; +import org.apache.http.entity.SerializableEntity; +import org.apache.http.impl.client.BasicCredentialsProvider; +import org.apache.http.impl.client.CloseableHttpClient; +import org.apache.http.impl.client.HttpClients; +import org.apache.http.impl.conn.PoolingHttpClientConnectionManager; +import org.apache.http.protocol.HttpContext; +import sun.net.www.protocol.http.HttpURLConnection; + +import java.io.*; +import java.net.URISyntaxException; +import java.nio.CharBuffer; +import java.util.concurrent.TimeUnit; + +/** + * A collection of methods that provide various utility functions for web + * applications. + */ +public class WebUtils { + + protected PoolingHttpClientConnectionManager connectionManager; + protected CredentialsProvider credsProvider; + protected CloseableHttpClient client; + protected boolean hasContext; + protected CookieStore cookieJar; + protected UsernamePasswordCredentials creds; + + + public WebUtils() { + this(null, null, null, 10); + } + + public WebUtils(CookieStore cookieJar) { + this(null, null, null, 10); + } + + public WebUtils(String userName, String password) { + this(null, userName, password, 10); + } + + public WebUtils(CookieStore cookieJar, + String userName, String password) { + this(cookieJar, userName, password, 10); + + } + + public WebUtils(CookieStore cookieJar, + String userName, String password, int maxConnections) { + connectionManager = new PoolingHttpClientConnectionManager(30, TimeUnit.SECONDS); + // Increase max total connection to 200 + connectionManager.setMaxTotal(maxConnections); + // Increase default max connection per route to 20 + connectionManager.setDefaultMaxPerRoute(maxConnections); + + this.cookieJar = cookieJar; + + + hasContext = cookieJar != null || userName != null || password != null; + + credsProvider = new BasicCredentialsProvider(); + if (userName != null && password != null) { + creds = new UsernamePasswordCredentials(userName, password); + } else { + creds = null; + } + + RequestConfig globalConfig = RequestConfig.custom() + .setCookieSpec(CookieSpecs.DEFAULT) + .build(); + + client = HttpClients.custom() + .setConnectionManager(connectionManager) + .setDefaultRequestConfig(globalConfig) + .setDefaultCookieStore(cookieJar) + .build(); + } + + /** + * Constructs a URL from a base URL segment and a set of query parameters. + * @param urlBase the string that will be the prefix of the returned. + * This should include everything apart from the query part of the URL. + * @param params an array of String values, which should contain alternating + * parameter names and parameter values. It is obvious that the size of this + * array must be an even number. + * @return a URl built according to the provided parameters. If for example + * the following parameter values are provided: <b>urlBase:</b> + * <tt>http://host:8080/appName/service</tt>; <b>params:</b> <tt>foo1, bar1, + * foo2, bar2, foo3, bar3</tt>, then the following URL would be returned: + * <tt>http://host:8080/appName/service?foo1=bar1&foo2=bar2&foo3=bar3</tt> + */ + public static String buildUrl(String urlBase, String... params){ + StringBuilder str = new StringBuilder(urlBase); + if(params != null && params.length > 0){ + str.append('?'); + for(int i = 0 ; i < (params.length/2) - 1; i++){ + str.append(params[i * 2]); + str.append('='); + str.append(params[i * 2 + 1]); + str.append('&'); + } + //and now, the last parameter + str.append(params[params.length - 2]); + str.append('='); + str.append(params[params.length - 1]); + } + return str.toString(); + } + + + protected HttpContext getContext() { + HttpClientContext context = HttpClientContext.create(); + context.setCredentialsProvider(credsProvider); + if (this.cookieJar != null) { + context.setCookieStore(this.cookieJar); + } + + return context; + } + + public CloseableHttpResponse execute(HttpUriRequest request) throws IOException { + // If we have a context, we have to generate a new one for each request, + // because sharing them between threads seems to break after a few hundred thousan + // requests. + if (hasContext) { + // Fetch a context to use. + HttpContext context = getContext(); + + if (creds != null) { + // Attach any credentials provided to the given host. + credsProvider.setCredentials( + new AuthScope(request.getURI().getHost(), + AuthScope.ANY_PORT), + creds); + } + + // Run the request. + return this.client.execute(request, context); + } else { + // No cookies or auth needed - just run the request as is. + return this.client.execute(request); + } + } + + /** + * Calls a web service action (i.e. it connects to a URL). If the connection + * fails, for whatever reason, or the response code is different from + * {@link HttpURLConnection#HTTP_OK}, then an IOException is raised. + * This method will write all content available from the + * input stream of the resulting connection to the provided Appendable. + * + * @param out an {@link Appendable} to which the output is written. + * @param baseUrl the constant part of the URL to be accessed. + * @param params an array of String values, that contain an alternation of + * parameter name, and parameter values. + * @throws IOException if the connection fails. + */ + public void getText(final Appendable out, String baseUrl, String... params) + throws IOException { + HttpGet request = new HttpGet(buildUrl(baseUrl, params)); + + new RequestExecutor<Void>(this) + .runRequest(request, response -> { + InputStream contentInputStream = response.getEntity().getContent(); + try { + Reader r = new InputStreamReader(contentInputStream, "UTF-8"); + char[] bufArray = new char[4096]; + CharBuffer buf = CharBuffer.wrap(bufArray); + int charsRead = -1; + while ((charsRead = r.read(bufArray)) >= 0) { + buf.position(0); + buf.limit(charsRead); + out.append(buf); + + } + } finally { + contentInputStream.close(); + } + return null; + }); + } + + /** + * Calls a web service action (i.e. it connects to a URL), and reads a + * serialised int value from the resulting connection. If the connection + * fails, for whatever reason, or the response code is different from + * {@link HttpURLConnection#HTTP_OK}, then an IOException is raised. + * This method will drain (and discard) all additional content available from + * either the input and error streams of the resulting connection (which + * should permit connection keepalives). + * + * @param baseUrl the constant part of the URL to be accessed. + * @param params an array of String values, that contain an alternation of + * parameter name, and parameter values. + * @throws IOException if the connection fails. + */ + public int getInt(String baseUrl, String... params) + throws IOException { + HttpGet request = new HttpGet(buildUrl(baseUrl, params)); + + return new RequestExecutor<Integer>(this) + .runObjectRequest(request, (ObjectInputStream o) -> o.readInt()); + } + + /** + * Calls a web service action (i.e. it connects to a URL). If the connection + * fails, for whatever reason, or the response code is different from + * {@link HttpURLConnection#HTTP_OK}, then an IOException is raised. + * This method will drain (and discard) all content available from either the + * input and error streams of the resulting connection (which should permit + * connection keepalives). + * + * @param baseUrl the constant part of the URL to be accessed. + * @param params an array of String values, that contain an alternation of + * parameter name, and parameter values. + * @throws IOException if the connection fails. + */ + public void getVoid(String baseUrl, String... params) throws IOException { + HttpGet request = new HttpGet(buildUrl(baseUrl, params)); + + new RequestExecutor<Void>(this) + .runRequest(request, response -> null); + } + + /** + * Calls a web service action (i.e. it connects to a URL), and reads a + * serialised long value from the resulting connection. If the connection + * fails, for whatever reason, or the response code is different from + * {@link HttpURLConnection#HTTP_OK}, then an IOException is raised. + * This method will drain (and discard) all additional content available from + * either the input and error streams of the resulting connection (which + * should permit connection keepalives). + * + * @param baseUrl the constant part of the URL to be accessed. + * @param params an array of String values, that contain an alternation of + * parameter name, and parameter values. + * @throws IOException if the connection fails. + */ + public long getLong(String baseUrl, String... params) + throws IOException { + HttpGet request = new HttpGet(buildUrl(baseUrl, params)); + + return new RequestExecutor<Long>(this) + .runObjectRequest(request, (ObjectInputStream o) -> o.readLong()); + } + + /** + * Calls a web service action (i.e. it connects to a URL), and reads a + * serialised double value from the resulting connection. If the connection + * fails, for whatever reason, or the response code is different from + * {@link HttpURLConnection#HTTP_OK}, then an IOException is raised. + * This method will drain (and discard) all additional content available from + * either the input and error streams of the resulting connection (which + * should permit connection keepalives). + * + * @param baseUrl the constant part of the URL to be accessed. + * @param params an array of String values, that contain an alternation of + * parameter name, and parameter values. + * @throws IOException if the connection fails. + */ + public double getDouble(String baseUrl, String... params) + throws IOException { + HttpGet request = new HttpGet(buildUrl(baseUrl, params)); + + return new RequestExecutor<Double>(this) + .runObjectRequest(request, (ObjectInputStream o) -> o.readDouble()); + } + + /** + * Calls a web service action (i.e. it connects to a URL), and reads a + * serialised boolean value from the resulting connection. If the connection + * fails, for whatever reason, or the response code is different from + * {@link HttpURLConnection#HTTP_OK}, then an IOException is raised. + * This method will drain (and discard) all additional content available from + * either the input and error streams of the resulting connection (which + * should permit connection keepalives). + * + * @param baseUrl the constant part of the URL to be accessed. + * @param params an array of String values, that contain an alternation of + * parameter name, and parameter values. + * @throws IOException if the connection fails. + */ + public boolean getBoolean(String baseUrl, String... params) + throws IOException { + HttpGet request = new HttpGet(buildUrl(baseUrl, params)); + + return new RequestExecutor<Boolean>(this) + .runObjectRequest(request, ObjectInputStream::readBoolean); + } + + /** + * Calls a web service action (i.e. it connects to a URL), and reads a + * serialised Object value from the resulting connection. If the connection + * fails, for whatever reason, or the response code is different from + * {@link HttpURLConnection#HTTP_OK}, then an IOException is raised. + * This method will drain (and discard) all additional content available from + * either the input and error streams of the resulting connection (which + * should permit connection keepalives). + * + * @param baseUrl the constant part of the URL to be accessed. + * @param params an array of String values, that contain an alternation of + * parameter name, and parameter values. + * @throws IOException if the connection fails. + * @throws ClassNotFoundException if the value read from the remote connection + * is of a type unknown to the local JVM. + */ + public Object getObject(String baseUrl, String... params) + throws IOException, ClassNotFoundException { + HttpGet request = new HttpGet(buildUrl(baseUrl, params)); + + try { + return new RequestExecutor<>(this) + .runObjectRequest(request, ObjectInputStream::readObject); + + } catch (RuntimeException e) { + if (e.getCause() instanceof ClassNotFoundException) { + throw (ClassNotFoundException) e.getCause(); + } else { + throw e; + } + } + } + + /** + * Calls a web service action (i.e. it connects to a URL) using the POST HTTP + * method, sending the given object in Java serialized format as the request + * body. The request is sent using chunked transfer encoding, and the + * request's Content-Type is set to application/octet-stream. If the + * connection fails, for whatever reason, or the response code is different + * from {@link HttpURLConnection#HTTP_OK}, then an IOException is raised. + * This method will drain (and discard) all content available from either the + * input and error streams of the resulting connection (which should permit + * connection keepalives). + * + * @param baseUrl the constant part of the URL to be accessed. + * @param object the object to serialize and send in the POST body + * @param params an array of String values, that contain an alternation of + * parameter name, and parameter values. + * @throws IOException if the connection fails. + */ + public void postObject(String baseUrl, Serializable object, + String... params) throws IOException { + HttpPost request = new HttpPost(buildUrl(baseUrl, params)); + + request.setHeader("Content-Type", "application/octet-stream"); + // Set up the entity to send to the server. + SerializableEntity entity = new SerializableEntity(object); + entity.setChunked(true); + request.setEntity(entity); + + // Now run the request + new RequestExecutor<Void>(this) + .runRequest(request, a -> null); + } + + /** + * Calls a web service action (i.e. it connects to a URL) using the POST HTTP + * method, sending the given bytes as the request + * body. The request is sent using chunked transfer encoding, and the + * request's Content-Type is set to application/octet-stream. If the + * connection fails, for whatever reason, or the response code is different + * from {@link HttpURLConnection#HTTP_OK}, then an IOException is raised. + * This method will drain (and discard) all content available from either the + * input and error streams of the resulting connection (which should permit + * connection keepalives). + * + * @param baseUrl the constant part of the URL to be accessed. + * @param data a {@link ByteArrayOutputStream} containing the data to be + * written. Its {@link ByteArrayOutputStream#writeTo(OutputStream)} method + * will be called causing it to write its data to the output connection. + * @param params an array of String values, that contain an alternation of + * parameter name, and parameter values. + * @throws IOException if the connection fails. + */ + public void postData(String baseUrl, ByteArrayOutputStream data, + String... params) throws IOException { + HttpPost request = new HttpPost(buildUrl(baseUrl, params)); + + request.setHeader("Content-Type", "application/octet-stream"); + + ByteArrayEntity entity = new ByteArrayEntity(data.toByteArray()); + entity.setChunked(true); + request.setEntity(entity); + + new RequestExecutor<Void>(this) + .runRequest(request, a -> null); + } + + /** + * Calls a web service action (i.e. it connects to a URL) using the POST HTTP + * method, sending the given object in Java serialized format as the request + * body. The request is sent using chunked transfer encoding, and the + * request's Content-Type is set to application/octet-stream. If the + * connection fails, for whatever reason, or the response code is different + * from {@link HttpURLConnection#HTTP_OK}, then an IOException is raised. + * The response from the server is read and Java-deserialized, the resulting + * Object being returned. + * <p> + * This method will then drain (and discard) all the remaining content + * available from either the input and error streams of the resulting + * connection (which should permit connection keepalives). + * + * @param baseUrl the constant part of the URL to be accessed. + * @param object the object to serialize and send in the POST body + * @param params an array of String values, that contain an alternation of + * parameter name, and parameter values. + * @return the de-serialized value sent by the remote endpoint. + * @throws IOException if the connection fails. + * @throws ClassNotFoundException if the data sent from the remote endpoint + * cannot be deserialized to a class locally known. + */ + public Object rpcCall(String baseUrl, Serializable object, + String... params) throws IOException, ClassNotFoundException { + HttpPost request = new HttpPost(buildUrl(baseUrl, params)); + request.setHeader("Content-Type", "application/octet-stream"); + // Set up the entity to send to the server. + SerializableEntity entity = new SerializableEntity(object); + entity.setChunked(true); + request.setEntity(entity); + + // Now run the request + return new RequestExecutor<>(this) + .runObjectRequest(request, ObjectInputStream::readObject); + } + + protected static class RequestExecutor<T> { + private WebUtils webUtils; + + RequestExecutor(WebUtils webUtils) { + this.webUtils = webUtils; + } + + public T runRequest(HttpUriRequest request, CheckedRequestConsumer<T> consumer) throws IOException { + CloseableHttpResponse response = webUtils.execute(request); + try { + long code = response.getStatusLine().getStatusCode(); + + if (code == HttpURLConnection.HTTP_OK) { + // try to get more details + return consumer.run(response); + } else { + // some problem -> try to get more details + String message = response.getStatusLine().getReasonPhrase(); + throw new IOException(code + + (message != null ? " (" + message + ")" : "") + + " Remote connection failed."); + } + } catch (ClassNotFoundException e) { + throw new RuntimeException(e); + } finally { + // make sure the connection is drained, to allow connection keepalive + response.close(); + } + } + + public T runObjectRequest(HttpUriRequest request, final CheckedObjectInputStreamConsumer<T> consumer) throws IOException { + return runRequest(request, (CloseableHttpResponse response) -> { + InputStream contentInputStream = null; + try { + contentInputStream = response.getEntity().getContent(); + return consumer.run(new ObjectInputStream(contentInputStream)); + } finally { + contentInputStream.close(); + } + }); + } + + + public interface CheckedRequestConsumer<T> { + T run(CloseableHttpResponse response) throws IOException, ClassNotFoundException; + } + + public interface CheckedObjectInputStreamConsumer<T> { + T run(ObjectInputStream response) throws IOException, ClassNotFoundException; + } + } + + +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <do...@us...> - 2017-04-05 08:04:43
|
Revision: 20204 http://sourceforge.net/p/gate/code/20204 Author: domrout Date: 2017-04-05 08:04:41 +0000 (Wed, 05 Apr 2017) Log Message: ----------- Update WebUtils to use Apache Requests and thus support proper request pools. This is extremely important with very large scale communication with Mimir. I have unit tests- but they're in Groovy. Shall I bother converting them? Also, should we bump the version, since we included a new dependency? Modified Paths: -------------- mimir/trunk/mimir-client/build/ivy.xml mimir/trunk/mimir-client/build.xml Removed Paths: ------------- mimir/trunk/mimir-client/src/gate/mimir/tool/WebUtils.java Modified: mimir/trunk/mimir-client/build/ivy.xml =================================================================== --- mimir/trunk/mimir-client/build/ivy.xml 2017-03-03 22:30:30 UTC (rev 20203) +++ mimir/trunk/mimir-client/build/ivy.xml 2017-04-05 08:04:41 UTC (rev 20204) @@ -17,6 +17,8 @@ </publications> <dependencies defaultconf="*->master(default),runtime(default)" > - <dependency name="mimir-core" org="uk.ac.gate" rev="5.4-SNAPSHOT" /> + <dependency name="mimir-core" org="uk.ac.gate" rev="5.5-SNAPSHOT" /> + <dependency org="org.apache.httpcomponents" name="httpcore" rev="4.4.6"/> + <dependency org="org.apache.httpcomponents" name="httpclient" rev="4.5.3"/> </dependencies> </ivy-module> Modified: mimir/trunk/mimir-client/build.xml =================================================================== --- mimir/trunk/mimir-client/build.xml 2017-03-03 22:30:30 UTC (rev 20203) +++ mimir/trunk/mimir-client/build.xml 2017-04-05 08:04:41 UTC (rev 20204) @@ -53,8 +53,8 @@ <javac destdir="${classes.dir}" srcdir="${src.dir}" debug="true" - target="1.7" - source="1.7" + target="1.8" + source="1.8" encoding="UTF-8" classpathref="compile.classpath" /> </target> @@ -83,7 +83,7 @@ Windowtitle="${app.title} (${app.version}) JavaDoc" docencoding="UTF-8" charset="UTF-8" - source="1.7" + source="1.8" useexternalfile="yes" breakiterator="true"> <fileset dir="${src.dir}" includes="**/*.java"/> Deleted: mimir/trunk/mimir-client/src/gate/mimir/tool/WebUtils.java =================================================================== --- mimir/trunk/mimir-client/src/gate/mimir/tool/WebUtils.java 2017-03-03 22:30:30 UTC (rev 20203) +++ mimir/trunk/mimir-client/src/gate/mimir/tool/WebUtils.java 2017-04-05 08:04:41 UTC (rev 20204) @@ -1,700 +0,0 @@ -/* - * WebUtils.java - * - * Copyright (c) 2007-2011, The University of Sheffield. - * - * This file is part of GATE Mímir (see http://gate.ac.uk/family/mimir.html), - * and is free software, licenced under the GNU Lesser General Public License, - * Version 3, June 2007 (also included with this distribution as file - * LICENCE-LGPL3.html). - * - * Valentin Tablan, 29 Jan 2010 - * - * $Id$ - */ -package gate.mimir.tool; - -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.io.ObjectInputStream; -import java.io.ObjectOutputStream; -import java.io.OutputStream; -import java.io.Reader; -import java.io.Serializable; -import java.io.UnsupportedEncodingException; -import java.net.CookieHandler; -import java.net.CookieManager; -import java.net.HttpURLConnection; -import java.net.URISyntaxException; -import java.net.URL; -import java.net.URLConnection; -import java.nio.CharBuffer; -import java.nio.charset.UnsupportedCharsetException; -import java.util.List; -import java.util.Map; - -import javax.xml.bind.DatatypeConverter; - -/** - * A collection of methods that provide various utility functions for web - * applications. - */ -public class WebUtils { - - private CookieHandler cookieJar; - - private String authHeader; - - public WebUtils() { - this(new CookieManager(), null, null); - } - - public WebUtils(CookieHandler cookieJar) { - this(cookieJar, null, null); - } - - public WebUtils(String userName, String password) { - this(new CookieManager(), userName, password); - } - - public WebUtils(CookieHandler cookieJar, String userName, String password) { - this.cookieJar = cookieJar; - if(userName != null && userName.length() > 0){ - try { - String userPass = userName + ":" + password; - authHeader = "Basic " + DatatypeConverter.printBase64Binary(userPass.getBytes("UTF-8")); - } catch(UnsupportedEncodingException e) { - throw new UnsupportedCharsetException("UTF-8"); - } - } else { - authHeader = null; - } - } - - - /** - * Constructs a URL from a base URL segment and a set of query parameters. - * @param urlBase the string that will be the prefix of the returned. - * This should include everything apart from the query part of the URL. - * @param params an array of String values, which should contain alternating - * parameter names and parameter values. It is obvious that the size of this - * array must be an even number. - * @return a URl built according to the provided parameters. If for example - * the following parameter values are provided: <b>urlBase:</b> - * <tt>http://host:8080/appName/service</tt>; <b>params:</b> <tt>foo1, bar1, - * foo2, bar2, foo3, bar3</tt>, then the following URL would be returned: - * <tt>http://host:8080/appName/service?foo1=bar1&foo2=bar2&foo3=bar3</tt> - */ - public static String buildUrl(String urlBase, String... params){ - StringBuilder str = new StringBuilder(urlBase); - if(params != null && params.length > 0){ - str.append('?'); - for(int i = 0 ; i < (params.length/2) - 1; i++){ - str.append(params[i * 2]); - str.append('='); - str.append(params[i * 2 + 1]); - str.append('&'); - } - //and now, the last parameter - str.append(params[params.length - 2]); - str.append('='); - str.append(params[params.length - 1]); - } - return str.toString(); - } - - /** - * Opens a URLConnection to the specified URL, setting any appropriate - * cookie headers. Can be overridden by subclasses that need to set - * any additional request headers. - */ - protected URLConnection openURLConnection(URL u) throws IOException { - URLConnection conn = u.openConnection(); - try { - // add the cookie headers - Map<String, List<String>> cookieHeaders = cookieJar.get( - u.toURI(), conn.getRequestProperties()); - for(Map.Entry<String, List<String>> e : cookieHeaders.entrySet()) { - for(String val : e.getValue()) { - conn.addRequestProperty(e.getKey(), val); - } - } - } catch(URISyntaxException e) { - throw (IOException)new IOException( - "Error converting URL " + u + " to a URI").initCause(e); - } - if(authHeader != null) { - conn.setRequestProperty("Authorization", authHeader); - } - return conn; - } - - /** - * Calls a web service action (i.e. it connects to a URL). If the connection - * fails, for whatever reason, or the response code is different from - * {@link HttpURLConnection#HTTP_OK}, then an IOException is raised. - * This method will drain (and discard) all content available from either the - * input and error streams of the resulting connection (which should permit - * connection keepalives). - * - * @param baseUrl the constant part of the URL to be accessed. - * @param params an array of String values, that contain an alternation of - * parameter name, and parameter values. - * @throws IOException if the connection fails. - */ - public void getVoid(String baseUrl, String... params) throws IOException { - - URL actionUrl = new URL(buildUrl(baseUrl, params)); - - URLConnection conn = openURLConnection(actionUrl); - if(conn instanceof HttpURLConnection) { - HttpURLConnection httpConn = (HttpURLConnection)conn; - try { - httpConn.connect(); - int code = httpConn.getResponseCode(); - if(code != HttpURLConnection.HTTP_OK) { - // try to get more details - String message = httpConn.getResponseMessage(); - throw new IOException(code - + (message != null ? " (" + message + ")" : "") - + " Remote connection failed."); - } - } finally { - // make sure the connection is drained, to allow connection keepalive - drainConnection(httpConn); - } - } else { - throw new IOException("Connection received is not HTTP!" - + " Connection class: " + conn.getClass().getCanonicalName()); - } - } - - - /** - * Calls a web service action (i.e. it connects to a URL). If the connection - * fails, for whatever reason, or the response code is different from - * {@link HttpURLConnection#HTTP_OK}, then an IOException is raised. - * This method will write all content available from the - * input stream of the resulting connection to the provided Appendable. - * - * @param out an {@link Appendable} to which the output is written. - * @param baseUrl the constant part of the URL to be accessed. - * @param params an array of String values, that contain an alternation of - * parameter name, and parameter values. - * @throws IOException if the connection fails. - */ - public void getText(Appendable out, String baseUrl, String...params) - throws IOException { - - URL actionUrl = new URL(buildUrl(baseUrl, params)); - - URLConnection conn = openURLConnection(actionUrl); - if(conn instanceof HttpURLConnection) { - HttpURLConnection httpConn = (HttpURLConnection)conn; - try { - httpConn.connect(); - int code = httpConn.getResponseCode(); - if(code == HttpURLConnection.HTTP_OK) { - // copy content to appendable - Reader r = new InputStreamReader(httpConn.getInputStream(), "UTF-8"); - char[] bufArray = new char[4096]; - CharBuffer buf = CharBuffer.wrap(bufArray); - int charsRead = -1; - while((charsRead = r.read(bufArray)) >= 0) { - buf.position(0); - buf.limit(charsRead); - out.append(buf); - } - }else{ - // some problem -> try to get more details - String message = httpConn.getResponseMessage(); - throw new IOException(code - + (message != null ? " (" + message + ")" : "") - + " Remote connection failed."); - } - }finally { - // make sure the connection is drained, to allow connection keepalive - drainConnection(httpConn); - } - } else { - throw new IOException("Connection received is not HTTP!" - + " Connection class: " + conn.getClass().getCanonicalName()); - } - } - - - /** - * Calls a web service action (i.e. it connects to a URL), and reads a - * serialised int value from the resulting connection. If the connection - * fails, for whatever reason, or the response code is different from - * {@link HttpURLConnection#HTTP_OK}, then an IOException is raised. - * This method will drain (and discard) all additional content available from - * either the input and error streams of the resulting connection (which - * should permit connection keepalives). - * - * @param baseUrl the constant part of the URL to be accessed. - * @param params an array of String values, that contain an alternation of - * parameter name, and parameter values. - * @throws IOException if the connection fails. - */ - public int getInt(String baseUrl, String... params) - throws IOException { - - URL actionUrl = new URL(buildUrl(baseUrl, params)); - - URLConnection conn = openURLConnection(actionUrl); - if(conn instanceof HttpURLConnection) { - HttpURLConnection httpConn = (HttpURLConnection)conn; - int res; - try { - httpConn.connect(); - int code = httpConn.getResponseCode(); - if(code == HttpURLConnection.HTTP_OK) { - res = new ObjectInputStream(httpConn.getInputStream()).readInt(); - }else{ - // try to get more details - String message = httpConn.getResponseMessage(); - throw new IOException(code - + (message != null ? " (" + message + ")" : "") - + " Remote connection failed."); - } - } finally { - // make sure the connection is drained, to allow connection keepalive - drainConnection(httpConn); - } - return res; - } else { - throw new IOException("Connection received is not HTTP!" - + " Connection class: " + conn.getClass().getCanonicalName()); - } - } - - - /** - * Calls a web service action (i.e. it connects to a URL), and reads a - * serialised long value from the resulting connection. If the connection - * fails, for whatever reason, or the response code is different from - * {@link HttpURLConnection#HTTP_OK}, then an IOException is raised. - * This method will drain (and discard) all additional content available from - * either the input and error streams of the resulting connection (which - * should permit connection keepalives). - * - * @param baseUrl the constant part of the URL to be accessed. - * @param params an array of String values, that contain an alternation of - * parameter name, and parameter values. - * @throws IOException if the connection fails. - */ - public long getLong(String baseUrl, String... params) - throws IOException { - - URL actionUrl = new URL(buildUrl(baseUrl, params)); - - URLConnection conn = openURLConnection(actionUrl); - if(conn instanceof HttpURLConnection) { - HttpURLConnection httpConn = (HttpURLConnection)conn; - long res; - try { - httpConn.connect(); - int code = httpConn.getResponseCode(); - if(code == HttpURLConnection.HTTP_OK) { - res = new ObjectInputStream(httpConn.getInputStream()).readLong(); - }else{ - // try to get more details - String message = httpConn.getResponseMessage(); - throw new IOException(code - + (message != null ? " (" + message + ")" : "") - + " Remote connection failed."); - } - } finally { - // make sure the connection is drained, to allow connection keepalive - drainConnection(httpConn); - } - return res; - } else { - throw new IOException("Connection received is not HTTP!" - + " Connection class: " + conn.getClass().getCanonicalName()); - } - } - - /** - * Calls a web service action (i.e. it connects to a URL), and reads a - * serialised double value from the resulting connection. If the connection - * fails, for whatever reason, or the response code is different from - * {@link HttpURLConnection#HTTP_OK}, then an IOException is raised. - * This method will drain (and discard) all additional content available from - * either the input and error streams of the resulting connection (which - * should permit connection keepalives). - * - * @param baseUrl the constant part of the URL to be accessed. - * @param params an array of String values, that contain an alternation of - * parameter name, and parameter values. - * @throws IOException if the connection fails. - */ - public double getDouble(String baseUrl, String...params) - throws IOException { - - URL actionUrl = new URL(buildUrl(baseUrl, params)); - - URLConnection conn = openURLConnection(actionUrl); - if(conn instanceof HttpURLConnection) { - HttpURLConnection httpConn = (HttpURLConnection)conn; - double res; - try { - httpConn.connect(); - int code = httpConn.getResponseCode(); - if(code == HttpURLConnection.HTTP_OK) { - res = new ObjectInputStream(httpConn.getInputStream()).readDouble(); - }else{ - // try to get more details - String message = httpConn.getResponseMessage(); - throw new IOException(code - + (message != null ? " (" + message + ")" : "") - + " Remote connection failed."); - } - } finally { - // make sure the connection is drained, to allow connection keepalive - drainConnection(httpConn); - } - return res; - } else { - throw new IOException("Connection received is not HTTP!" - + " Connection class: " + conn.getClass().getCanonicalName()); - } - } - - - /** - * Calls a web service action (i.e. it connects to a URL), and reads a - * serialised boolean value from the resulting connection. If the connection - * fails, for whatever reason, or the response code is different from - * {@link HttpURLConnection#HTTP_OK}, then an IOException is raised. - * This method will drain (and discard) all additional content available from - * either the input and error streams of the resulting connection (which - * should permit connection keepalives). - * - * @param baseUrl the constant part of the URL to be accessed. - * @param params an array of String values, that contain an alternation of - * parameter name, and parameter values. - * @throws IOException if the connection fails. - */ - public boolean getBoolean(String baseUrl, String... params) - throws IOException { - - URL actionUrl = new URL(buildUrl(baseUrl, params)); - - URLConnection conn = openURLConnection(actionUrl); - if(conn instanceof HttpURLConnection) { - HttpURLConnection httpConn = (HttpURLConnection)conn; - boolean res; - try { - httpConn.connect(); - int code = httpConn.getResponseCode(); - if(code == HttpURLConnection.HTTP_OK) { - res = new ObjectInputStream(httpConn.getInputStream()).readBoolean(); - }else{ - // try to get more details - String message = httpConn.getResponseMessage(); - throw new IOException(code - + (message != null ? " (" + message + ")" : "") - + " Remote connection failed."); - } - } finally { - // make sure the connection is drained, to allow connection keepalive - drainConnection(httpConn); - } - return res; - } else { - throw new IOException("Connection received is not HTTP!" - + " Connection class: " + conn.getClass().getCanonicalName()); - } - } - - - /** - * Calls a web service action (i.e. it connects to a URL), and reads a - * serialised Object value from the resulting connection. If the connection - * fails, for whatever reason, or the response code is different from - * {@link HttpURLConnection#HTTP_OK}, then an IOException is raised. - * This method will drain (and discard) all additional content available from - * either the input and error streams of the resulting connection (which - * should permit connection keepalives). - * - * @param baseUrl the constant part of the URL to be accessed. - * @param params an array of String values, that contain an alternation of - * parameter name, and parameter values. - * @throws IOException if the connection fails. - * @throws ClassNotFoundException if the value read from the remote connection - * is of a type unknown to the local JVM. - */ - public Object getObject(String baseUrl, String... params) - throws IOException, ClassNotFoundException { - - URL actionUrl = new URL(buildUrl(baseUrl, params)); - URLConnection conn = openURLConnection(actionUrl); - if(conn instanceof HttpURLConnection) { - HttpURLConnection httpConn = (HttpURLConnection)conn; - Object res; - try { - res = readRemoteObject(httpConn); - } finally { - // make sure the connection is drained, to allow connection keepalive - drainConnection(httpConn); - } - return res; - } else { - throw new IOException("Connection received is not HTTP!" - + " Connection class: " + conn.getClass().getCanonicalName()); - } - } - - /** - * Reads an Object value from a HTTP connection. - * @param httpConn the connection to read from - * @return the value sent from the remote endpoint - * @throws IOException - * @throws ClassNotFoundException - */ - private Object readRemoteObject(HttpURLConnection httpConn) - throws IOException, ClassNotFoundException { - httpConn.connect(); - int code = httpConn.getResponseCode(); - if(code == HttpURLConnection.HTTP_OK) { - return new ObjectInputStream(httpConn.getInputStream()).readObject(); - }else{ - // try to get more details - String message = httpConn.getResponseMessage(); - throw new IOException(code - + (message != null ? " (" + message + ")" : "") - + " Remote connection failed."); - } - } - - - - /** - * Calls a web service action (i.e. it connects to a URL) using the POST HTTP - * method, sending the given object in Java serialized format as the request - * body. The request is sent using chunked transfer encoding, and the - * request's Content-Type is set to application/octet-stream. If the - * connection fails, for whatever reason, or the response code is different - * from {@link HttpURLConnection#HTTP_OK}, then an IOException is raised. - * This method will drain (and discard) all content available from either the - * input and error streams of the resulting connection (which should permit - * connection keepalives). - * - * @param baseUrl the constant part of the URL to be accessed. - * @param object the object to serialize and send in the POST body - * @param params an array of String values, that contain an alternation of - * parameter name, and parameter values. - * @throws IOException if the connection fails. - */ - public void postObject(String baseUrl, Serializable object, - String... params) throws IOException { - URL actionUrl = new URL(buildUrl(baseUrl, params)); - URLConnection conn = openURLConnection(actionUrl); - if(conn instanceof HttpURLConnection) { - HttpURLConnection httpConn = (HttpURLConnection)conn; - try { - // enable output and set HTTP method - httpConn.setDoOutput(true); - httpConn.setRequestMethod("POST"); - // turn on chunking (we don't want to buffer the output if we don't - // have to). 0 means use default chunk size. - httpConn.setChunkedStreamingMode(0); - // don't time out - httpConn.setConnectTimeout(0); - httpConn.setReadTimeout(0); - - // MIME type (defaults to form encoded, so must change it) - httpConn.setRequestProperty("Content-Type", "application/octet-stream"); - - // connect and send the object - httpConn.connect(); - OutputStream httpOutputStream = httpConn.getOutputStream(); - ObjectOutputStream objectStream = new ObjectOutputStream(httpOutputStream); - objectStream.writeObject(object); - objectStream.close(); - - int code = httpConn.getResponseCode(); - if(code != HttpURLConnection.HTTP_OK) { - // try to get more details - String message = httpConn.getResponseMessage(); - throw new IOException(code - + (message != null ? " (" + message + ")" : "") - + " Remote connection failed."); - } - } finally { - // make sure the connection is drained, to allow connection keepalive - drainConnection(httpConn); - } - } else { - throw new IOException("Connection received is not HTTP!" - + " Connection class: " + conn.getClass().getCanonicalName()); - } - } - - /** - * Calls a web service action (i.e. it connects to a URL) using the POST HTTP - * method, sending the given bytes as the request - * body. The request is sent using chunked transfer encoding, and the - * request's Content-Type is set to application/octet-stream. If the - * connection fails, for whatever reason, or the response code is different - * from {@link HttpURLConnection#HTTP_OK}, then an IOException is raised. - * This method will drain (and discard) all content available from either the - * input and error streams of the resulting connection (which should permit - * connection keepalives). - * - * @param baseUrl the constant part of the URL to be accessed. - * @param data a {@link ByteArrayOutputStream} containing the data to be - * written. Its {@link ByteArrayOutputStream#writeTo(OutputStream)} method - * will be called causing it to write its data to the output connection. - * @param params an array of String values, that contain an alternation of - * parameter name, and parameter values. - * @throws IOException if the connection fails. - */ - public void postData(String baseUrl, ByteArrayOutputStream data, - String... params) throws IOException { - URL actionUrl = new URL(buildUrl(baseUrl, params)); - URLConnection conn = openURLConnection(actionUrl); - if(conn instanceof HttpURLConnection) { - HttpURLConnection httpConn = (HttpURLConnection)conn; - try { - // enable output and set HTTP method - httpConn.setDoOutput(true); - httpConn.setRequestMethod("POST"); - // turn on chunking (we don't want to buffer the output if we don't - // have to). 0 means use default chunk size. - httpConn.setChunkedStreamingMode(0); - // don't time out - httpConn.setConnectTimeout(0); - httpConn.setReadTimeout(0); - - // MIME type (defaults to form encoded, so must change it) - httpConn.setRequestProperty("Content-Type", "application/octet-stream"); - - // connect and send the object - httpConn.connect(); - - OutputStream httpOutputStream = httpConn.getOutputStream(); - data.writeTo(httpOutputStream); - httpOutputStream.close(); - - int code = httpConn.getResponseCode(); - if(code != HttpURLConnection.HTTP_OK) { - // try to get more details - String message = httpConn.getResponseMessage(); - throw new IOException(code - + (message != null ? " (" + message + ")" : "") - + " Remote connection failed."); - } - } finally { - // make sure the connection is drained, to allow connection keepalive - drainConnection(httpConn); - } - } else { - throw new IOException("Connection received is not HTTP!" - + " Connection class: " + conn.getClass().getCanonicalName()); - } - } - - /** - * Calls a web service action (i.e. it connects to a URL) using the POST HTTP - * method, sending the given object in Java serialized format as the request - * body. The request is sent using chunked transfer encoding, and the - * request's Content-Type is set to application/octet-stream. If the - * connection fails, for whatever reason, or the response code is different - * from {@link HttpURLConnection#HTTP_OK}, then an IOException is raised. - * The response from the server is read and Java-deserialized, the resulting - * Object being returned. - * - * This method will then drain (and discard) all the remaining content - * available from either the input and error streams of the resulting - * connection (which should permit connection keepalives). - * - * @param baseUrl the constant part of the URL to be accessed. - * @param object the object to serialize and send in the POST body - * @param params an array of String values, that contain an alternation of - * parameter name, and parameter values. - * @return the de-serialized value sent by the remote endpoint. - * @throws IOException if the connection fails. - * @throws ClassNotFoundException if the data sent from the remote endpoint - * cannot be deserialized to a class locally known. - */ - public Object rpcCall(String baseUrl, Serializable object, - String... params) throws IOException, ClassNotFoundException { - URL actionUrl = new URL(buildUrl(baseUrl, params)); - URLConnection conn = openURLConnection(actionUrl); - if(conn instanceof HttpURLConnection) { - HttpURLConnection httpConn = (HttpURLConnection)conn; - try { - // enable output and set HTTP method - httpConn.setDoOutput(true); - httpConn.setRequestMethod("POST"); - // turn on chunking (we don't want to buffer the output if we don't - // have to). 0 means use default chunk size. - httpConn.setChunkedStreamingMode(0); - // don't time out - httpConn.setConnectTimeout(0); - httpConn.setReadTimeout(0); - - // MIME type (defaults to form encoded, so must change it) - httpConn.setRequestProperty("Content-Type", "application/octet-stream"); - - // connect and send the object - httpConn.connect(); - OutputStream httpOutputStream = httpConn.getOutputStream(); - ObjectOutputStream objectStream = new ObjectOutputStream(httpOutputStream); - objectStream.writeObject(object); - objectStream.close(); - - return readRemoteObject(httpConn); - } finally { - // make sure the connection is drained, to allow connection keepalive - drainConnection(httpConn); - } - } else { - throw new IOException("Connection received is not HTTP!" - + " Connection class: " + conn.getClass().getCanonicalName()); - } - } - - - /** - * Read and discard the response body from an HttpURLConnection. This first - * attempts to get the normal input stream ( - * {@link HttpURLConnection#getInputStream}) and read that, but if that fails - * with an exception we attempt to read the error stream ( - * {@link HttpURLConnection#getErrorStream}) instead. Also processes any - * cookie-related headers from the response, storing them in the cookie jar. - */ - private void drainConnection(HttpURLConnection httpConnection) - throws IOException { - try { - // store cookies for future connections - cookieJar.put(httpConnection.getURL().toURI(), - httpConnection.getHeaderFields()); - } catch(URISyntaxException e1) { - // ignore, we tried. - } - // small buffer - we're only expecting to drain a few dozen bytes from each - // request, if that. - byte[] buf = new byte[1024]; - try { - InputStream in = httpConnection.getInputStream(); - while(in.read(buf) >= 0) { - // do nothing - } - in.close(); - } catch(IOException e) { - InputStream errStream = httpConnection.getErrorStream(); - if(errStream != null){ - while(errStream.read(buf) >= 0) { - // do nothing - } - errStream.close(); - } - } - } -} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ian...@us...> - 2017-03-03 22:30:32
|
Revision: 20203 http://sourceforge.net/p/gate/code/20203 Author: ian_roberts Date: 2017-03-03 22:30:30 +0000 (Fri, 03 Mar 2017) Log Message: ----------- No-op change to test whether SourceForge svn commit emails are working again now. Modified Paths: -------------- mimir/trunk/doc/preamble.tex Modified: mimir/trunk/doc/preamble.tex =================================================================== --- mimir/trunk/doc/preamble.tex 2017-02-28 16:39:54 UTC (rev 20202) +++ mimir/trunk/doc/preamble.tex 2017-03-03 22:30:30 UTC (rev 20203) @@ -392,3 +392,4 @@ \lstnormal \usepackage{underscore} + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mar...@us...> - 2017-02-08 10:42:32
|
Revision: 20081 http://sourceforge.net/p/gate/code/20081 Author: markagreenwood Date: 2017-02-08 10:42:29 +0000 (Wed, 08 Feb 2017) Log Message: ----------- added the bulgarian plugin to the list of things to build Modified Paths: -------------- gate/branches/sawdust2/plugins/pom.xml Modified: gate/branches/sawdust2/plugins/pom.xml =================================================================== --- gate/branches/sawdust2/plugins/pom.xml 2017-02-08 10:41:33 UTC (rev 20080) +++ gate/branches/sawdust2/plugins/pom.xml 2017-02-08 10:42:29 UTC (rev 20081) @@ -44,6 +44,7 @@ <module>Format_Twitter</module> <module>Groovy</module> <module>JAPE_Plus</module> + <module>Lang_Bulgarian</module> <module>Lang_Romanian</module> <module>Lang_Russian</module> <module>Lang_Welsh</module> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mar...@us...> - 2017-02-08 10:41:35
|
Revision: 20080 http://sourceforge.net/p/gate/code/20080 Author: markagreenwood Date: 2017-02-08 10:41:33 +0000 (Wed, 08 Feb 2017) Log Message: ----------- converted another plugin to use maven -- it's amazing how many of these you can do when sat for hours in Geneva airport Modified Paths: -------------- gate/branches/sawdust2/plugins/Lang_Bulgarian/.classpath gate/branches/sawdust2/plugins/Lang_Bulgarian/.project Added Paths: ----------- gate/branches/sawdust2/plugins/Lang_Bulgarian/pom.xml gate/branches/sawdust2/plugins/Lang_Bulgarian/src/main/ gate/branches/sawdust2/plugins/Lang_Bulgarian/src/main/java/ gate/branches/sawdust2/plugins/Lang_Bulgarian/src/main/java/gate/ gate/branches/sawdust2/plugins/Lang_Bulgarian/src/main/resources/ gate/branches/sawdust2/plugins/Lang_Bulgarian/src/main/resources/creole.xml gate/branches/sawdust2/plugins/Lang_Bulgarian/src/main/resources/resources/ Removed Paths: ------------- gate/branches/sawdust2/plugins/Lang_Bulgarian/build.xml gate/branches/sawdust2/plugins/Lang_Bulgarian/creole.xml gate/branches/sawdust2/plugins/Lang_Bulgarian/resources/ gate/branches/sawdust2/plugins/Lang_Bulgarian/src/gate/ Property Changed: ---------------- gate/branches/sawdust2/plugins/Lang_Bulgarian/ Index: gate/branches/sawdust2/plugins/Lang_Bulgarian =================================================================== --- gate/branches/sawdust2/plugins/Lang_Bulgarian 2017-02-08 10:33:25 UTC (rev 20079) +++ gate/branches/sawdust2/plugins/Lang_Bulgarian 2017-02-08 10:41:33 UTC (rev 20080) Property changes on: gate/branches/sawdust2/plugins/Lang_Bulgarian ___________________________________________________________________ Modified: svn:ignore ## -1,2 +1,2 ## -classes -lang-bulgarian.jar +target +.settings Modified: gate/branches/sawdust2/plugins/Lang_Bulgarian/.classpath =================================================================== --- gate/branches/sawdust2/plugins/Lang_Bulgarian/.classpath 2017-02-08 10:33:25 UTC (rev 20079) +++ gate/branches/sawdust2/plugins/Lang_Bulgarian/.classpath 2017-02-08 10:41:33 UTC (rev 20080) @@ -1,7 +1,31 @@ <?xml version="1.0" encoding="UTF-8"?> <classpath> - <classpathentry kind="src" path="src"/> - <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> - <classpathentry combineaccessrules="false" kind="src" path="/GATE"/> - <classpathentry kind="output" path="classes"/> + <classpathentry kind="src" output="target/classes" path="src/main/java"> + <attributes> + <attribute name="optional" value="true"/> + <attribute name="maven.pomderived" value="true"/> + </attributes> + </classpathentry> + <classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"> + <attributes> + <attribute name="maven.pomderived" value="true"/> + </attributes> + </classpathentry> + <classpathentry kind="src" output="target/test-classes" path="src/test/java"> + <attributes> + <attribute name="optional" value="true"/> + <attribute name="maven.pomderived" value="true"/> + </attributes> + </classpathentry> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"> + <attributes> + <attribute name="maven.pomderived" value="true"/> + </attributes> + </classpathentry> + <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"> + <attributes> + <attribute name="maven.pomderived" value="true"/> + </attributes> + </classpathentry> + <classpathentry kind="output" path="target/classes"/> </classpath> Modified: gate/branches/sawdust2/plugins/Lang_Bulgarian/.project =================================================================== --- gate/branches/sawdust2/plugins/Lang_Bulgarian/.project 2017-02-08 10:33:25 UTC (rev 20079) +++ gate/branches/sawdust2/plugins/Lang_Bulgarian/.project 2017-02-08 10:41:33 UTC (rev 20080) @@ -10,8 +10,14 @@ <arguments> </arguments> </buildCommand> + <buildCommand> + <name>org.eclipse.m2e.core.maven2Builder</name> + <arguments> + </arguments> + </buildCommand> </buildSpec> <natures> <nature>org.eclipse.jdt.core.javanature</nature> + <nature>org.eclipse.m2e.core.maven2Nature</nature> </natures> </projectDescription> Deleted: gate/branches/sawdust2/plugins/Lang_Bulgarian/build.xml =================================================================== --- gate/branches/sawdust2/plugins/Lang_Bulgarian/build.xml 2017-02-08 10:33:25 UTC (rev 20079) +++ gate/branches/sawdust2/plugins/Lang_Bulgarian/build.xml 2017-02-08 10:41:33 UTC (rev 20080) @@ -1,105 +0,0 @@ -<project name="Lang_Bulgarian" basedir="." default="all" > - <!-- Prevent Ant from warning about includeantruntime not being set --> - <property name="build.sysclasspath" value="ignore" /> - - <property file="build.properties" /> - <property name="plugin.name" value="Lang_Bulgarian"/> - - <!-- Make environment variables available --> - <property environment="env" /> - - <!-- If environment variable GATE_HOME is set, use it for - gate.home (unless it was already set in build.properties --> - <condition property="gate.home" value="${env.GATE_HOME}"> - <isset property="env.GATE_HOME"/> - </condition> - - <property name="gate.home" location="../.." /> - <property name="gate.lib" location="${gate.home}/lib" /> - <property name="gate.jar" location="${gate.home}/bin/gate.jar" /> - <property name="src.dir" location="src" /> - <property name="classes.dir" location="classes" /> - <property name="jar.location" location="lang-bulgarian.jar" /> - <property name="doc.dir" location="doc" /> - <property name="javadoc.dir" location="${doc.dir}/javadoc" /> - - <!-- Path to compile - includes gate.jar and GATE/lib/*.jar --> - <path id="compile.classpath"> - <pathelement location="${gate.jar}" /> - <fileset dir="${gate.lib}"> - <include name="**/*.jar" /> - <include name="**/*.zip" /> - </fileset> - </path> - - <!-- create build directory structure --> - <target name="prepare"> - <mkdir dir="${classes.dir}" /> - </target> - - <!-- compile the source --> - <target name="compile" depends="prepare"> - <javac classpathref="compile.classpath" - srcdir="${src.dir}" - destdir="${classes.dir}" - debug="true" - debuglevel="lines,source" - encoding="UTF-8" - source="1.6" - target="1.6"> - <compilerarg value="-Xmaxwarns" /> - <compilerarg value="${gate.compile.maxwarnings}" /> - <compilerarg value="-Xlint:all" /> - </javac> - </target> - - <!-- Build JavaDoc documentation --> - <target name="doc.prepare"> - <mkdir dir="${javadoc.dir}" /> - </target> - - <target name="javadoc" depends="doc.prepare"> - <javadoc destdir="${javadoc.dir}" packagenames="*" - classpathref="compile.classpath" - encoding="UTF-8" - windowtitle="${plugin.name} JavaDoc" - source="1.6"> - <sourcepath> - <pathelement location="${src.dir}" /> - </sourcepath> - <link href="http://docs.oracle.com/javase/6/docs/api/" /> - <link href="http://gate.ac.uk/gate/doc/javadoc/" /> - </javadoc> - </target> - - - <!-- create the JAR file --> - <target name="jar" depends="compile" > - <jar destfile="${jar.location}" - update="false" - basedir="${classes.dir}" /> - </target> - - <!-- remove the generated .class files --> - <target name="clean.classes" > - <delete dir="${classes.dir}" /> - </target> - - <!-- Clean up - remove .class and .jar files --> - <target name="clean" depends="clean.classes" > - <delete file="${jar.location}" /> - </target> - - <!-- Build everything - the code and JavaDoc --> - <target name="all" depends="jar, javadoc" /> - - <!-- Targets used by the main GATE build file: - build: build the plugin - just calls "jar" target - test : run the unit tests - there aren't any - distro.prepare: remove intermediate files that shouldn't be in the - distribution - --> - <target name="build" depends="jar" /> - <target name="test" /> - <target name="distro.prepare" depends="clean.classes" /> -</project> Deleted: gate/branches/sawdust2/plugins/Lang_Bulgarian/creole.xml =================================================================== --- gate/branches/sawdust2/plugins/Lang_Bulgarian/creole.xml 2017-02-08 10:33:25 UTC (rev 20079) +++ gate/branches/sawdust2/plugins/Lang_Bulgarian/creole.xml 2017-02-08 10:41:33 UTC (rev 20080) @@ -1,5 +0,0 @@ -<CREOLE-DIRECTORY> - <CREOLE> - <JAR SCAN="true">lang-bulgarian.jar</JAR> - </CREOLE> -</CREOLE-DIRECTORY> Added: gate/branches/sawdust2/plugins/Lang_Bulgarian/pom.xml =================================================================== --- gate/branches/sawdust2/plugins/Lang_Bulgarian/pom.xml (rev 0) +++ gate/branches/sawdust2/plugins/Lang_Bulgarian/pom.xml 2017-02-08 10:41:33 UTC (rev 20080) @@ -0,0 +1,38 @@ + +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>uk.ac.gate.plugins</groupId> + <artifactId>base-plugin</artifactId> + <!-- this should be the version of GATE you wish to build against --> + <version>9.0-SNAPSHOT</version> + <relativePath>../../Plugin_Base/pom.xml</relativePath> + </parent> + + <!-- this is the description of this plugin --> + <groupId>uk.ac.gate.plugins</groupId> + <artifactId>lang-bulgarian</artifactId> + <version>9.0-SNAPSHOT</version> + + <licenses> + <license> + <name>GNU Lesser General Public License (LGPL), Version 3</name> + <url>http://www.gnu.org/licenses/lgpl-3.0.txt</url> + <distribution>repo</distribution> + </license> + </licenses> + + <organization> + <name>GATE</name> + <url>http://gate.ac.uk</url> + </organization> + + <dependencies> + <!-- add any other libraries your plugin depends on. Any other GATE plugins + you depend on at compile time should use the provided scope --> + </dependencies> + +</project> Copied: gate/branches/sawdust2/plugins/Lang_Bulgarian/src/main/resources/creole.xml (from rev 20070, gate/branches/sawdust2/plugins/Lang_Bulgarian/creole.xml) =================================================================== --- gate/branches/sawdust2/plugins/Lang_Bulgarian/src/main/resources/creole.xml (rev 0) +++ gate/branches/sawdust2/plugins/Lang_Bulgarian/src/main/resources/creole.xml 2017-02-08 10:41:33 UTC (rev 20080) @@ -0,0 +1,3 @@ +<CREOLE-DIRECTORY> + +</CREOLE-DIRECTORY> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mar...@us...> - 2017-02-08 10:33:27
|
Revision: 20079 http://sourceforge.net/p/gate/code/20079 Author: markagreenwood Date: 2017-02-08 10:33:25 +0000 (Wed, 08 Feb 2017) Log Message: ----------- added the Lang_Romanian plugin to the list of those to build Modified Paths: -------------- gate/branches/sawdust2/plugins/pom.xml Modified: gate/branches/sawdust2/plugins/pom.xml =================================================================== --- gate/branches/sawdust2/plugins/pom.xml 2017-02-08 10:29:53 UTC (rev 20078) +++ gate/branches/sawdust2/plugins/pom.xml 2017-02-08 10:33:25 UTC (rev 20079) @@ -44,6 +44,7 @@ <module>Format_Twitter</module> <module>Groovy</module> <module>JAPE_Plus</module> + <module>Lang_Romanian</module> <module>Lang_Russian</module> <module>Lang_Welsh</module> <module>Language_Identification</module> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mar...@us...> - 2017-02-08 10:29:56
|
Revision: 20078 http://sourceforge.net/p/gate/code/20078 Author: markagreenwood Date: 2017-02-08 10:29:53 +0000 (Wed, 08 Feb 2017) Log Message: ----------- moved the creole metadata out of creole.xml into the classes and converted the plugin to use maven Modified Paths: -------------- gate/branches/sawdust2/plugins/Lang_Romanian/.classpath gate/branches/sawdust2/plugins/Lang_Romanian/.project gate/branches/sawdust2/plugins/Lang_Romanian/src/main/java/romanian/RomanianGazetteer.java gate/branches/sawdust2/plugins/Lang_Romanian/src/main/java/romanian/RomanianTokeniser.java gate/branches/sawdust2/plugins/Lang_Romanian/src/main/java/romanian/RomanianTransducer.java gate/branches/sawdust2/plugins/Lang_Romanian/src/main/resources/resources/romanian.gapp Added Paths: ----------- gate/branches/sawdust2/plugins/Lang_Romanian/pom.xml gate/branches/sawdust2/plugins/Lang_Romanian/src/main/ gate/branches/sawdust2/plugins/Lang_Romanian/src/main/java/ gate/branches/sawdust2/plugins/Lang_Romanian/src/main/java/romanian/ gate/branches/sawdust2/plugins/Lang_Romanian/src/main/resources/ gate/branches/sawdust2/plugins/Lang_Romanian/src/main/resources/creole.xml gate/branches/sawdust2/plugins/Lang_Romanian/src/main/resources/resources/ Removed Paths: ------------- gate/branches/sawdust2/plugins/Lang_Romanian/build.xml gate/branches/sawdust2/plugins/Lang_Romanian/creole.xml gate/branches/sawdust2/plugins/Lang_Romanian/doc/ gate/branches/sawdust2/plugins/Lang_Romanian/resources/ gate/branches/sawdust2/plugins/Lang_Romanian/src/romanian/ Property Changed: ---------------- gate/branches/sawdust2/plugins/Lang_Romanian/ Index: gate/branches/sawdust2/plugins/Lang_Romanian =================================================================== --- gate/branches/sawdust2/plugins/Lang_Romanian 2017-02-08 09:51:22 UTC (rev 20077) +++ gate/branches/sawdust2/plugins/Lang_Romanian 2017-02-08 10:29:53 UTC (rev 20078) Property changes on: gate/branches/sawdust2/plugins/Lang_Romanian ___________________________________________________________________ Modified: svn:ignore ## -1,4 +1,2 ## -build -dist -romanian.jar +target .settings Modified: gate/branches/sawdust2/plugins/Lang_Romanian/.classpath =================================================================== --- gate/branches/sawdust2/plugins/Lang_Romanian/.classpath 2017-02-08 09:51:22 UTC (rev 20077) +++ gate/branches/sawdust2/plugins/Lang_Romanian/.classpath 2017-02-08 10:29:53 UTC (rev 20078) @@ -1,7 +1,31 @@ <?xml version="1.0" encoding="UTF-8"?> <classpath> - <classpathentry kind="src" path="src"/> - <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/> - <classpathentry combineaccessrules="false" exported="true" kind="src" path="/GATE"/> - <classpathentry kind="output" path="build"/> + <classpathentry kind="src" output="target/classes" path="src/main/java"> + <attributes> + <attribute name="optional" value="true"/> + <attribute name="maven.pomderived" value="true"/> + </attributes> + </classpathentry> + <classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"> + <attributes> + <attribute name="maven.pomderived" value="true"/> + </attributes> + </classpathentry> + <classpathentry kind="src" output="target/test-classes" path="src/test/java"> + <attributes> + <attribute name="optional" value="true"/> + <attribute name="maven.pomderived" value="true"/> + </attributes> + </classpathentry> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"> + <attributes> + <attribute name="maven.pomderived" value="true"/> + </attributes> + </classpathentry> + <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"> + <attributes> + <attribute name="maven.pomderived" value="true"/> + </attributes> + </classpathentry> + <classpathentry kind="output" path="target/classes"/> </classpath> Modified: gate/branches/sawdust2/plugins/Lang_Romanian/.project =================================================================== --- gate/branches/sawdust2/plugins/Lang_Romanian/.project 2017-02-08 09:51:22 UTC (rev 20077) +++ gate/branches/sawdust2/plugins/Lang_Romanian/.project 2017-02-08 10:29:53 UTC (rev 20078) @@ -10,8 +10,14 @@ <arguments> </arguments> </buildCommand> + <buildCommand> + <name>org.eclipse.m2e.core.maven2Builder</name> + <arguments> + </arguments> + </buildCommand> </buildSpec> <natures> <nature>org.eclipse.jdt.core.javanature</nature> + <nature>org.eclipse.m2e.core.maven2Nature</nature> </natures> </projectDescription> Deleted: gate/branches/sawdust2/plugins/Lang_Romanian/build.xml =================================================================== --- gate/branches/sawdust2/plugins/Lang_Romanian/build.xml 2017-02-08 09:51:22 UTC (rev 20077) +++ gate/branches/sawdust2/plugins/Lang_Romanian/build.xml 2017-02-08 10:29:53 UTC (rev 20078) @@ -1,89 +0,0 @@ -<project name="arabic" default="dist" basedir="."> - <description> - A plugin for Multilingual data [Romanian] - </description> - - <!-- Prevent Ant from warning about includeantruntime not being set --> - <property name="build.sysclasspath" value="ignore" /> - - <!-- set global properties for this build --> - <property name="src" location="src"/> - <property name="build" location="build"/> - <property name="dist" location="dist"/> - <property name="jar.location" location="romanian.jar" /> - <property name="doc.dir" location="doc" /> - <property name="javadoc.dir" location="${doc.dir}/javadoc" /> - - <property name="gate.home" location="../.." /> - <property name="gate.jar" location="${gate.home}/bin/gate.jar" /> - <property name="gate.lib" location="${gate.home}/lib" /> - - <path id="compile.classpath"> - <pathelement location="${gate.jar}" /> - <fileset dir="${gate.lib}" > - <include name="**/*.jar" /> - <include name="**/*.zip" /> - </fileset> - </path> - - <target name="init"> - <!-- Create the time stamp --> - <tstamp/> - <!-- Create the build directory structure used by compile --> - <mkdir dir="${build}"/> - </target> - - <target name="compile" depends="init" - description="compile the source " > - <!-- Compile the java code from ${src} into ${build} --> - <javac srcdir="${src}" destdir="${build}" source="1.6" target="1.6" - classpathref="compile.classpath" /> - </target> - - <!-- Build JavaDoc documentation --> - <target name="doc.prepare"> - <mkdir dir="${javadoc.dir}" /> - </target> - - <target name="javadoc" depends="doc.prepare"> - <javadoc destdir="${javadoc.dir}" packagenames="*" - classpathref="compile.classpath" - encoding="UTF-8" - windowtitle="${plugin.name} JavaDoc" - source="1.6"> - <sourcepath> - <pathelement location="${src}" /> - </sourcepath> - <link href="http://docs.oracle.com/javase/6/docs/api/" /> - <link href="http://gate.ac.uk/gate/doc/javadoc/" /> - </javadoc> - </target> - - - <target name="dist" depends="compile" - description="generate the distribution" > - <!-- Create the distribution directory --> - <mkdir dir="${dist}/lib"/> - - <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file --> - <jar jarfile="${jar.location}" basedir="${build}"/> - </target> - - <target name="clean.classes" - description="clean up" > - <!-- Delete the ${build} and ${dist} directory trees --> - <delete dir="${build}"/> - <delete dir="${dist}"/> - </target> - - <target name="clean" depends="clean.classes" > - <!-- full clean also removes the generated JAR file --> - <delete file="${jar.location}" /> - </target> - - <!-- Targets used by the main GATE build file --> - <target name="build" depends="dist" /> - <target name="test" /> - <target name="distro.prepare" depends="clean.classes" /> -</project> - Deleted: gate/branches/sawdust2/plugins/Lang_Romanian/creole.xml =================================================================== --- gate/branches/sawdust2/plugins/Lang_Romanian/creole.xml 2017-02-08 09:51:22 UTC (rev 20077) +++ gate/branches/sawdust2/plugins/Lang_Romanian/creole.xml 2017-02-08 10:29:53 UTC (rev 20078) @@ -1,80 +0,0 @@ -<?xml version="1.0"?> -<!-- $Id$ --> -<!-- creole.xml directory file for Romanian Processing resources --> -<CREOLE-DIRECTORY> - <!-- Processing Resources --> - <CREOLE> - <JAR SCAN="true">romanian.jar</JAR> - <!-- creole.xml for the Englishtokeniser --> - - <RESOURCE> - <NAME>Romanian Tokeniser</NAME> - <CLASS>romanian.RomanianTokeniser</CLASS> - <COMMENT>A customisable Romanian tokeniser.</COMMENT> - <PARAMETER NAME="document" COMMENT="The document to be tokenised" - RUNTIME="true">gate.Document</PARAMETER> - <PARAMETER NAME="annotationSetName" RUNTIME="true" - COMMENT="The annotation set to be used for the generated annotations" - OPTIONAL="true">java.lang.String</PARAMETER> - <PARAMETER NAME="tokeniserRulesURL" - DEFAULT="resources/Tokeniser/OBtokeniser.rules" - COMMENT="The URL for the rules file" SUFFIXES="rules" > - java.net.URL</PARAMETER> - <PARAMETER NAME="encoding" - COMMENT="The encoding used for reading the definitions" DEFAULT="UTF-8"> - java.lang.String</PARAMETER> - <PARAMETER NAME="transducerGrammarURL" - DEFAULT="resources/Tokeniser/postprocess.jape" - COMMENT="The URL for the postprocessing transducer" SUFFIXES="jape"> - java.net.URL</PARAMETER> - <ICON>shefTokeniser.gif</ICON> - </RESOURCE> - - <!-- creole.xml for gazetteer --> - <RESOURCE> - <NAME>Romanian Gazetteer</NAME> - <CLASS>romanian.RomanianGazetteer</CLASS> - <COMMENT>A list lookup component.</COMMENT> - <PARAMETER NAME="document" RUNTIME="true" - COMMENT="The document to be processed">gate.corpora.DocumentImpl</PARAMETER> - <PARAMETER NAME="annotationSetName" RUNTIME="true" - COMMENT="The annotation set to be used for the generated annotations" - OPTIONAL="true">java.lang.String</PARAMETER> - <PARAMETER NAME="listsURL" - DEFAULT="resources/Gazeteer/list.lst" - COMMENT="The URL to the file with list of lists" SUFFIXES="def"> - java.net.URL</PARAMETER> - <PARAMETER DEFAULT="UTF-8" - COMMENT="The encoding used for reading the definitions" NAME="encoding"> - java.lang.String</PARAMETER> - <PARAMETER DEFAULT="true" - COMMENT="Should this gazetteer diferentiate on case" - NAME="caseSensitive">java.lang.Boolean</PARAMETER> - <PARAMETER DEFAULT="true" - COMMENT="Should this gazetteer only match whole words" - NAME="wholeWordsOnly">java.lang.Boolean</PARAMETER> - <ICON>shefGazetteer.gif</ICON> - </RESOURCE> - - <!-- creole.xml for JapeTransducer --> - <RESOURCE> - <NAME>Romanian Transducer</NAME> - <CLASS>romanian.RomanianTransducer</CLASS> - <COMMENT>A module for executing Jape grammars</COMMENT> - <PARAMETER NAME="document" RUNTIME="true" - COMMENT="The document to be processed">gate.Document</PARAMETER> - <PARAMETER NAME="inputASName" RUNTIME="true" - COMMENT="The annotation set to be used as input for the transducer" - OPTIONAL="true">java.lang.String</PARAMETER> - <PARAMETER NAME="outputASName" RUNTIME="true" - COMMENT="The annotation set to be used as output for the transducer" - OPTIONAL="true">java.lang.String</PARAMETER> - <PARAMETER NAME="grammarURL" COMMENT="The URL to the grammar file" - DEFAULT="resources/Grammar/main.jape" - SUFFIXES="jape">java.net.URL</PARAMETER> - <PARAMETER NAME="encoding" DEFAULT="UTF-8" - COMMENT="The encoding used for reading the grammar"> - java.lang.String</PARAMETER> - </RESOURCE> - </CREOLE> -</CREOLE-DIRECTORY> Added: gate/branches/sawdust2/plugins/Lang_Romanian/pom.xml =================================================================== --- gate/branches/sawdust2/plugins/Lang_Romanian/pom.xml (rev 0) +++ gate/branches/sawdust2/plugins/Lang_Romanian/pom.xml 2017-02-08 10:29:53 UTC (rev 20078) @@ -0,0 +1,44 @@ + +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>uk.ac.gate.plugins</groupId> + <artifactId>base-plugin</artifactId> + <!-- this should be the version of GATE you wish to build against --> + <version>9.0-SNAPSHOT</version> + <relativePath>../../Plugin_Base/pom.xml</relativePath> + </parent> + + <!-- this is the description of this plugin --> + <groupId>uk.ac.gate.plugins</groupId> + <artifactId>lang-romanian</artifactId> + <version>9.0-SNAPSHOT</version> + + <licenses> + <license> + <name>GNU Lesser General Public License (LGPL), Version 3</name> + <url>http://www.gnu.org/licenses/lgpl-3.0.txt</url> + <distribution>repo</distribution> + </license> + </licenses> + + <organization> + <name>GATE</name> + <url>http://gate.ac.uk</url> + </organization> + + <dependencies> + <!-- add any other libraries your plugin depends on. Any other GATE plugins + you depend on at compile time should use the provided scope --> + <dependency> + <groupId>uk.ac.gate.plugins</groupId> + <artifactId>annie</artifactId> + <version>9.0-SNAPSHOT</version> + <scope>provided</scope> + </dependency> + </dependencies> + +</project> Modified: gate/branches/sawdust2/plugins/Lang_Romanian/src/main/java/romanian/RomanianGazetteer.java =================================================================== --- gate/branches/sawdust2/plugins/Lang_Romanian/src/romanian/RomanianGazetteer.java 2017-02-07 13:36:44 UTC (rev 20070) +++ gate/branches/sawdust2/plugins/Lang_Romanian/src/main/java/romanian/RomanianGazetteer.java 2017-02-08 10:29:53 UTC (rev 20078) @@ -1,5 +1,25 @@ package romanian; + +import gate.creole.ResourceReference; import gate.creole.gazetteer.DefaultGazetteer; +import gate.creole.metadata.CreoleParameter; +import gate.creole.metadata.CreoleResource; +import gate.creole.metadata.Optional; +@CreoleResource(name = "Romanian Gazetteer", comment = "A list lookup component.") public class RomanianGazetteer extends DefaultGazetteer { + + private static final long serialVersionUID = 3284137978256832610L; + + @Override + @CreoleParameter(defaultValue = "resources/Gazeteer/list.lst") + public void setListsURL(ResourceReference lists) { + super.setListsURL(lists); + } + + @Optional + @CreoleParameter(defaultValue = "\t") + public void setGazetteerFeatureSeparator(String gazetteerFeatureSeparator) { + super.setGazetteerFeatureSeparator(gazetteerFeatureSeparator); + } } \ No newline at end of file Modified: gate/branches/sawdust2/plugins/Lang_Romanian/src/main/java/romanian/RomanianTokeniser.java =================================================================== --- gate/branches/sawdust2/plugins/Lang_Romanian/src/romanian/RomanianTokeniser.java 2017-02-07 13:36:44 UTC (rev 20070) +++ gate/branches/sawdust2/plugins/Lang_Romanian/src/main/java/romanian/RomanianTokeniser.java 2017-02-08 10:29:53 UTC (rev 20078) @@ -1,8 +1,25 @@ package romanian; +import java.net.URL; + +import gate.creole.metadata.CreoleParameter; +import gate.creole.metadata.CreoleResource; import gate.creole.tokeniser.DefaultTokeniser; +@CreoleResource(name = "Romanian Tokeniser", comment = "A customisable Romanian tokeniser.") public class RomanianTokeniser extends DefaultTokeniser { + private static final long serialVersionUID = 7816208836127678739L; + @Override + @CreoleParameter(defaultValue = "resources/Tokeniser/OBtokeniser.rules") + public void setTokeniserRulesURL(URL rules) { + super.setTokeniserRulesURL(rules); + } + + @Override + @CreoleParameter(defaultValue = "resources/Tokeniser/postprocess.jape") + public void setTransducerGrammarURL(URL grammar) { + super.setTransducerGrammarURL(grammar); + } } \ No newline at end of file Modified: gate/branches/sawdust2/plugins/Lang_Romanian/src/main/java/romanian/RomanianTransducer.java =================================================================== --- gate/branches/sawdust2/plugins/Lang_Romanian/src/romanian/RomanianTransducer.java 2017-02-07 13:36:44 UTC (rev 20070) +++ gate/branches/sawdust2/plugins/Lang_Romanian/src/main/java/romanian/RomanianTransducer.java 2017-02-08 10:29:53 UTC (rev 20078) @@ -1,5 +1,18 @@ package romanian; + +import gate.creole.ResourceReference; import gate.creole.Transducer; +import gate.creole.metadata.CreoleParameter; +import gate.creole.metadata.CreoleResource; +@CreoleResource(name = "Romanian Transducer", comment = "A module for executing Jape grammars") public class RomanianTransducer extends Transducer { + + private static final long serialVersionUID = -5848481918991024567L; + + @Override + @CreoleParameter(defaultValue = "resources/Grammar/main.jape") + public void setGrammarURL(ResourceReference grammar) { + super.setGrammarURL(grammar); + } } \ No newline at end of file Copied: gate/branches/sawdust2/plugins/Lang_Romanian/src/main/resources/creole.xml (from rev 20070, gate/branches/sawdust2/plugins/Lang_Romanian/creole.xml) =================================================================== --- gate/branches/sawdust2/plugins/Lang_Romanian/src/main/resources/creole.xml (rev 0) +++ gate/branches/sawdust2/plugins/Lang_Romanian/src/main/resources/creole.xml 2017-02-08 10:29:53 UTC (rev 20078) @@ -0,0 +1,5 @@ +<?xml version="1.0"?> +<!-- creole.xml directory file for Romanian Processing resources --> +<CREOLE-DIRECTORY> + <REQUIRES GROUP="uk.ac.gate.plugins" ARTIFACT="annie" VERSION="9.0-SNAPSHOT"/> +</CREOLE-DIRECTORY> Modified: gate/branches/sawdust2/plugins/Lang_Romanian/src/main/resources/resources/romanian.gapp =================================================================== --- gate/branches/sawdust2/plugins/Lang_Romanian/resources/romanian.gapp 2017-02-07 13:36:44 UTC (rev 20070) +++ gate/branches/sawdust2/plugins/Lang_Romanian/src/main/resources/resources/romanian.gapp 2017-02-08 10:29:53 UTC (rev 20078) @@ -1,12 +1,16 @@ <gate.util.persistence.GateApplication> <urlList class="gate.util.persistence.CollectionPersistence"> <localList> - <gate.util.persistence.PersistenceManager-URLHolder> - <urlString>$relpath$..</urlString> - </gate.util.persistence.PersistenceManager-URLHolder> - <gate.util.persistence.PersistenceManager-URLHolder> - <urlString>$relpath$../../ANNIE</urlString> - </gate.util.persistence.PersistenceManager-URLHolder> + <gate.creole.Plugin-Maven> + <group>uk.ac.gate.plugins</group> + <artifact>annie</artifact> + <version>9.0-SNAPSHOT</version> + </gate.creole.Plugin-Maven> + <gate.creole.Plugin-Maven> + <group>uk.ac.gate.plugins</group> + <artifact>lang-romanian</artifact> + <version>9.0-SNAPSHOT</version> + </gate.creole.Plugin-Maven> </localList> <collectionType>java.util.ArrayList</collectionType> </urlList> @@ -72,26 +76,7 @@ <resourceName>Romanian Gazetteer_00036</resourceName> <initParams class="gate.util.persistence.MapPersistence"> <mapType>gate.util.SimpleFeatureMapImpl</mapType> - <localMap> - <entry> - <string>caseSensitive</string> - <boolean>true</boolean> - </entry> - <entry> - <string>wholeWordsOnly</string> - <boolean>true</boolean> - </entry> - <entry> - <string>encoding</string> - <string>UTF-8</string> - </entry> - <entry> - <string>listsURL</string> - <gate.util.persistence.PersistenceManager-URLHolder> - <urlString>$relpath$Gazeteer/list.lst</urlString> - </gate.util.persistence.PersistenceManager-URLHolder> - </entry> - </localMap> + <localMap/> </initParams> <features class="gate.util.persistence.MapPersistence"> <mapType>gate.util.SimpleFeatureMapImpl</mapType> @@ -119,24 +104,7 @@ <resourceName>Romanian Tokeniser_0003A</resourceName> <initParams class="gate.util.persistence.MapPersistence"> <mapType>gate.util.SimpleFeatureMapImpl</mapType> - <localMap> - <entry> - <string>encoding</string> - <string>UTF-8</string> - </entry> - <entry> - <string>tokeniserRulesURL</string> - <gate.util.persistence.PersistenceManager-URLHolder> - <urlString>$relpath$Tokeniser/OBtokeniser.rules</urlString> - </gate.util.persistence.PersistenceManager-URLHolder> - </entry> - <entry> - <string>transducerGrammarURL</string> - <gate.util.persistence.PersistenceManager-URLHolder> - <urlString>$relpath$Tokeniser/postprocess.jape</urlString> - </gate.util.persistence.PersistenceManager-URLHolder> - </entry> - </localMap> + <localMap/> </initParams> <features class="gate.util.persistence.MapPersistence"> <mapType>gate.util.SimpleFeatureMapImpl</mapType> @@ -168,18 +136,7 @@ <resourceName>Romanian Transducer_0003F</resourceName> <initParams class="gate.util.persistence.MapPersistence"> <mapType>gate.util.SimpleFeatureMapImpl</mapType> - <localMap> - <entry> - <string>encoding</string> - <string>UTF-8</string> - </entry> - <entry> - <string>grammarURL</string> - <gate.util.persistence.PersistenceManager-URLHolder> - <urlString>$relpath$Grammar/main.jape</urlString> - </gate.util.persistence.PersistenceManager-URLHolder> - </entry> - </localMap> + <localMap/> </initParams> <features class="gate.util.persistence.MapPersistence"> <mapType>gate.util.SimpleFeatureMapImpl</mapType> @@ -192,73 +149,13 @@ <pr class="gate.util.persistence.LanguageAnalyserPersistence"> <runtimeParams class="gate.util.persistence.MapPersistence"> <mapType>gate.util.SimpleFeatureMapImpl</mapType> - <localMap> - <entry> - <string>document</string> - <null/> - </entry> - <entry> - <string>annotationSetName</string> - <null/> - </entry> - <entry> - <string>annotationTypes</string> - <gate.util.persistence.CollectionPersistence> - <localList> - <string>Organization</string> - <string>Person</string> - <string>Location</string> - <string>Date</string> - </localList> - <collectionType>java.util.ArrayList</collectionType> - </gate.util.persistence.CollectionPersistence> - </entry> - </localMap> + <localMap/> </runtimeParams> <resourceType>gate.creole.orthomatcher.OrthoMatcher</resourceType> <resourceName>ANNIE OrthoMatcher_00043</resourceName> <initParams class="gate.util.persistence.MapPersistence"> <mapType>gate.util.SimpleFeatureMapImpl</mapType> - <localMap> - <entry> - <string>caseSensitive</string> - <boolean>false</boolean> - </entry> - <entry> - <string>encoding</string> - <string>UTF-8</string> - </entry> - <entry> - <string>definitionFileURL</string> - <gate.util.persistence.PersistenceManager-URLHolder> - <urlString>$relpath$../../ANNIE/resources/othomatcher/listsNM.def</urlString> - </gate.util.persistence.PersistenceManager-URLHolder> - </entry> - <entry> - <string>highPrecisionOrgs</string> - <boolean>false</boolean> - </entry> - <entry> - <string>organizationType</string> - <string>Organization</string> - </entry> - <entry> - <string>processUnknown</string> - <boolean>true</boolean> - </entry> - <entry> - <string>personType</string> - <string>Person</string> - </entry> - <entry> - <string>extLists</string> - <boolean>true</boolean> - </entry> - <entry> - <string>minimumNicknameLikelihood</string> - <double>0.5</double> - </entry> - </localMap> + <localMap/> </initParams> <features class="gate.util.persistence.MapPersistence"> <mapType>gate.util.SimpleFeatureMapImpl</mapType> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mar...@us...> - 2017-02-08 09:51:25
|
Revision: 20077 http://sourceforge.net/p/gate/code/20077 Author: markagreenwood Date: 2017-02-08 09:51:22 +0000 (Wed, 08 Feb 2017) Log Message: ----------- added the Lang_Russian plugin to the list of things to build Modified Paths: -------------- gate/branches/sawdust2/plugins/pom.xml Modified: gate/branches/sawdust2/plugins/pom.xml =================================================================== --- gate/branches/sawdust2/plugins/pom.xml 2017-02-08 09:50:13 UTC (rev 20076) +++ gate/branches/sawdust2/plugins/pom.xml 2017-02-08 09:51:22 UTC (rev 20077) @@ -44,6 +44,7 @@ <module>Format_Twitter</module> <module>Groovy</module> <module>JAPE_Plus</module> + <module>Lang_Russian</module> <module>Lang_Welsh</module> <module>Language_Identification</module> <module>Linguistic_Simplifier</module> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mar...@us...> - 2017-02-08 09:50:16
|
Revision: 20076 http://sourceforge.net/p/gate/code/20076 Author: markagreenwood Date: 2017-02-08 09:50:13 +0000 (Wed, 08 Feb 2017) Log Message: ----------- converted the Russian plugin to maven as well Modified Paths: -------------- gate/branches/sawdust2/plugins/Lang_Russian/.classpath gate/branches/sawdust2/plugins/Lang_Russian/.project gate/branches/sawdust2/plugins/Lang_Russian/src/main/java/com/ontotext/russie/gazetteer/RussGazetteer.java gate/branches/sawdust2/plugins/Lang_Russian/src/main/resources/resources/RussIE.xgapp gate/branches/sawdust2/plugins/Lang_Russian/src/main/resources/resources/RussIE_inflex.xgapp gate/branches/sawdust2/plugins/Lang_Russian/src/main/resources/resources/RussIE_ortho.xgapp gate/branches/sawdust2/plugins/Lang_Russian/src/main/resources/resources/RussIE_ortho_inflex.xgapp Added Paths: ----------- gate/branches/sawdust2/plugins/Lang_Russian/pom.xml gate/branches/sawdust2/plugins/Lang_Russian/src/main/ gate/branches/sawdust2/plugins/Lang_Russian/src/main/java/ gate/branches/sawdust2/plugins/Lang_Russian/src/main/java/com/ gate/branches/sawdust2/plugins/Lang_Russian/src/main/java/gate/ gate/branches/sawdust2/plugins/Lang_Russian/src/main/resources/ gate/branches/sawdust2/plugins/Lang_Russian/src/main/resources/creole.xml gate/branches/sawdust2/plugins/Lang_Russian/src/main/resources/resources/ Removed Paths: ------------- gate/branches/sawdust2/plugins/Lang_Russian/build.xml gate/branches/sawdust2/plugins/Lang_Russian/creole.xml gate/branches/sawdust2/plugins/Lang_Russian/resources/ gate/branches/sawdust2/plugins/Lang_Russian/src/com/ gate/branches/sawdust2/plugins/Lang_Russian/src/gate/ Property Changed: ---------------- gate/branches/sawdust2/plugins/Lang_Russian/ Index: gate/branches/sawdust2/plugins/Lang_Russian =================================================================== --- gate/branches/sawdust2/plugins/Lang_Russian 2017-02-08 02:23:45 UTC (rev 20075) +++ gate/branches/sawdust2/plugins/Lang_Russian 2017-02-08 09:50:13 UTC (rev 20076) Property changes on: gate/branches/sawdust2/plugins/Lang_Russian ___________________________________________________________________ Modified: svn:ignore ## -1,4 +1,2 ## -russie.jar -classes +target .settings -doc Modified: gate/branches/sawdust2/plugins/Lang_Russian/.classpath =================================================================== --- gate/branches/sawdust2/plugins/Lang_Russian/.classpath 2017-02-08 02:23:45 UTC (rev 20075) +++ gate/branches/sawdust2/plugins/Lang_Russian/.classpath 2017-02-08 09:50:13 UTC (rev 20076) @@ -1,7 +1,31 @@ <?xml version="1.0" encoding="UTF-8"?> <classpath> - <classpathentry kind="src" path="src"/> - <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/> - <classpathentry combineaccessrules="false" exported="true" kind="src" path="/GATE"/> - <classpathentry kind="output" path="classes"/> + <classpathentry kind="src" output="target/classes" path="src/main/java"> + <attributes> + <attribute name="optional" value="true"/> + <attribute name="maven.pomderived" value="true"/> + </attributes> + </classpathentry> + <classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"> + <attributes> + <attribute name="maven.pomderived" value="true"/> + </attributes> + </classpathentry> + <classpathentry kind="src" output="target/test-classes" path="src/test/java"> + <attributes> + <attribute name="optional" value="true"/> + <attribute name="maven.pomderived" value="true"/> + </attributes> + </classpathentry> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"> + <attributes> + <attribute name="maven.pomderived" value="true"/> + </attributes> + </classpathentry> + <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"> + <attributes> + <attribute name="maven.pomderived" value="true"/> + </attributes> + </classpathentry> + <classpathentry kind="output" path="target/classes"/> </classpath> Modified: gate/branches/sawdust2/plugins/Lang_Russian/.project =================================================================== --- gate/branches/sawdust2/plugins/Lang_Russian/.project 2017-02-08 02:23:45 UTC (rev 20075) +++ gate/branches/sawdust2/plugins/Lang_Russian/.project 2017-02-08 09:50:13 UTC (rev 20076) @@ -10,8 +10,14 @@ <arguments> </arguments> </buildCommand> + <buildCommand> + <name>org.eclipse.m2e.core.maven2Builder</name> + <arguments> + </arguments> + </buildCommand> </buildSpec> <natures> <nature>org.eclipse.jdt.core.javanature</nature> + <nature>org.eclipse.m2e.core.maven2Nature</nature> </natures> </projectDescription> Deleted: gate/branches/sawdust2/plugins/Lang_Russian/build.xml =================================================================== --- gate/branches/sawdust2/plugins/Lang_Russian/build.xml 2017-02-08 02:23:45 UTC (rev 20075) +++ gate/branches/sawdust2/plugins/Lang_Russian/build.xml 2017-02-08 09:50:13 UTC (rev 20076) @@ -1,92 +0,0 @@ -<project name="russie" basedir="." default="jar"> - <!-- Prevent Ant from warning about includeantruntime not being set --> - <property name="build.sysclasspath" value="ignore" /> - - <property file="build.properties" /> - - <property name="gate.home" location="../../" /> - <property name="gate.lib" location="${gate.home}/lib" /> - <property name="gate.jar" location="${gate.home}/bin/gate.jar" /> - - <property name="src.dir" location="src" /> - <property name="classes.dir" location="classes" /> - <property name="jar.location" location="russie.jar" /> - <property name="doc.dir" location="doc" /> - <property name="javadoc.dir" location="${doc.dir}/javadoc" /> - <property name="gate.compile.maxwarnings" value="10000" /> - - <!-- Path to compile - includes gate.jar and GATE/lib/*.jar --> - <path id="compile.classpath"> - <pathelement location="${gate.jar}" /> - <fileset dir="${gate.lib}" includes="*.jar" /> - </path> - - <!-- create build directory structure --> - <target name="prepare"> - <mkdir dir="${classes.dir}" /> - </target> - - <!-- compile the source --> - <target name="compile" depends="prepare"> - <javac classpathref="compile.classpath" - srcdir="${src.dir}" - destdir="${classes.dir}" - debug="true" - debuglevel="lines,source" - encoding="UTF-8" - source="1.6" - target="1.6"> - <compilerarg value="-Xmaxwarns" /> - <compilerarg value="${gate.compile.maxwarnings}" /> - <compilerarg value="-Xlint:all" /> - </javac> - </target> - - <!-- copy resources (i.e. anything non-.java) from src to classes --> - <target name="copy.resources" depends="prepare"> - <copy todir="${classes.dir}" includeEmptyDirs="true"> - <fileset dir="${src.dir}" excludes="**/*.java" /> - </copy> - </target> - - <!-- create the JAR file --> - <target name="jar" depends="compile, copy.resources"> - <jar destfile="${jar.location}" update="false" basedir="${classes.dir}" /> - </target> - - <!-- remove the generated .class files --> - <target name="clean.classes"> - <delete dir="${classes.dir}" /> - </target> - - <!-- Clean up - remove .class and .jar files --> - <target name="clean" depends="clean.classes"> - <delete file="${jar.location}" /> - </target> - - <!-- Build JavaDoc documentation --> - <target name="doc.prepare"> - <mkdir dir="${javadoc.dir}" /> - </target> - - <target name="javadoc" depends="doc.prepare"> - <javadoc destdir="${javadoc.dir}" packagenames="*" classpathref="compile.classpath" encoding="UTF-8" windowtitle="${plugin.name} JavaDoc" source="1.6"> - <sourcepath> - <pathelement location="${src.dir}" /> - </sourcepath> - <link href="http://docs.oracle.com/javase/6/docs/api/" /> - <link href="http://gate.ac.uk/gate/doc/javadoc/" /> - </javadoc> - </target> - - <!-- Targets used by the main GATE build file: - build: build the plugin - just calls "jar" target - test : run the unit tests - there aren't any - distro.prepare: remove intermediate files that shouldn't be in the - distribution - --> - <target name="build" depends="jar" /> - <target name="test" /> - <target name="distro.prepare" depends="clean.classes" /> - -</project> Deleted: gate/branches/sawdust2/plugins/Lang_Russian/creole.xml =================================================================== --- gate/branches/sawdust2/plugins/Lang_Russian/creole.xml 2017-02-08 02:23:45 UTC (rev 20075) +++ gate/branches/sawdust2/plugins/Lang_Russian/creole.xml 2017-02-08 09:50:13 UTC (rev 20076) @@ -1,5 +0,0 @@ -<?xml version="1.0"?> -<CREOLE-DIRECTORY> - <JAR SCAN="TRUE">russie.jar</JAR> -</CREOLE-DIRECTORY> - Added: gate/branches/sawdust2/plugins/Lang_Russian/pom.xml =================================================================== --- gate/branches/sawdust2/plugins/Lang_Russian/pom.xml (rev 0) +++ gate/branches/sawdust2/plugins/Lang_Russian/pom.xml 2017-02-08 09:50:13 UTC (rev 20076) @@ -0,0 +1,44 @@ + +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>uk.ac.gate.plugins</groupId> + <artifactId>base-plugin</artifactId> + <!-- this should be the version of GATE you wish to build against --> + <version>9.0-SNAPSHOT</version> + <relativePath>../../Plugin_Base/pom.xml</relativePath> + </parent> + + <!-- this is the description of this plugin --> + <groupId>uk.ac.gate.plugins</groupId> + <artifactId>lang-russian</artifactId> + <version>9.0-SNAPSHOT</version> + + <licenses> + <license> + <name>GNU Lesser General Public License (LGPL), Version 3</name> + <url>http://www.gnu.org/licenses/lgpl-3.0.txt</url> + <distribution>repo</distribution> + </license> + </licenses> + + <organization> + <name>GATE</name> + <url>http://gate.ac.uk</url> + </organization> + + <dependencies> + <!-- add any other libraries your plugin depends on. Any other GATE plugins + you depend on at compile time should use the provided scope --> + <dependency> + <groupId>uk.ac.gate.plugins</groupId> + <artifactId>annie</artifactId> + <version>9.0-SNAPSHOT</version> + <scope>provided</scope> + </dependency> + </dependencies> + +</project> Modified: gate/branches/sawdust2/plugins/Lang_Russian/src/main/java/com/ontotext/russie/gazetteer/RussGazetteer.java =================================================================== --- gate/branches/sawdust2/plugins/Lang_Russian/src/com/ontotext/russie/gazetteer/RussGazetteer.java 2017-02-08 02:23:45 UTC (rev 20075) +++ gate/branches/sawdust2/plugins/Lang_Russian/src/main/java/com/ontotext/russie/gazetteer/RussGazetteer.java 2017-02-08 09:50:13 UTC (rev 20076) @@ -174,7 +174,7 @@ try { definition = new LinearDefinition(); - definition.setURL(listsURL); + definition.setURL(listsURL.toURL()); definition.load(); int linesCnt = definition.size(); listsByNode = definition.loadLists(); Copied: gate/branches/sawdust2/plugins/Lang_Russian/src/main/resources/creole.xml (from rev 20075, gate/branches/sawdust2/plugins/Lang_Russian/creole.xml) =================================================================== --- gate/branches/sawdust2/plugins/Lang_Russian/src/main/resources/creole.xml (rev 0) +++ gate/branches/sawdust2/plugins/Lang_Russian/src/main/resources/creole.xml 2017-02-08 09:50:13 UTC (rev 20076) @@ -0,0 +1,5 @@ +<?xml version="1.0"?> +<CREOLE-DIRECTORY> + <REQUIRES GROUP="uk.ac.gate.plugins" ARTIFACT="annie" VERSION="9.0-SNAPSHOT"/> +</CREOLE-DIRECTORY> + Modified: gate/branches/sawdust2/plugins/Lang_Russian/src/main/resources/resources/RussIE.xgapp =================================================================== --- gate/branches/sawdust2/plugins/Lang_Russian/resources/RussIE.xgapp 2017-02-08 02:23:45 UTC (rev 20075) +++ gate/branches/sawdust2/plugins/Lang_Russian/src/main/resources/resources/RussIE.xgapp 2017-02-08 09:50:13 UTC (rev 20076) @@ -2,12 +2,16 @@ <gate.util.persistence.GateApplication> <urlList class='gate.util.persistence.CollectionPersistence'> <localList> - <gate.util.persistence.PersistenceManager-URLHolder> - <urlString>$relpath$../../ANNIE</urlString> - </gate.util.persistence.PersistenceManager-URLHolder> - <gate.util.persistence.PersistenceManager-URLHolder> - <urlString>$relpath$..</urlString> - </gate.util.persistence.PersistenceManager-URLHolder> + <gate.creole.Plugin-Maven> + <group>uk.ac.gate.plugins</group> + <artifact>annie</artifact> + <version>9.0-SNAPSHOT</version> + </gate.creole.Plugin-Maven> + <gate.creole.Plugin-Maven> + <group>uk.ac.gate.plugins</group> + <artifact>lang-russian</artifact> + <version>9.0-SNAPSHOT</version> + </gate.creole.Plugin-Maven> </localList> <collectionType>java.util.ArrayList</collectionType> </urlList> Modified: gate/branches/sawdust2/plugins/Lang_Russian/src/main/resources/resources/RussIE_inflex.xgapp =================================================================== --- gate/branches/sawdust2/plugins/Lang_Russian/resources/RussIE_inflex.xgapp 2017-02-08 02:23:45 UTC (rev 20075) +++ gate/branches/sawdust2/plugins/Lang_Russian/src/main/resources/resources/RussIE_inflex.xgapp 2017-02-08 09:50:13 UTC (rev 20076) @@ -2,12 +2,16 @@ <gate.util.persistence.GateApplication> <urlList class='gate.util.persistence.CollectionPersistence'> <localList> - <gate.util.persistence.PersistenceManager-URLHolder> - <urlString>$gatehome$plugins/ANNIE/</urlString> - </gate.util.persistence.PersistenceManager-URLHolder> - <gate.util.persistence.PersistenceManager-URLHolder> - <urlString>$relpath$..</urlString> - </gate.util.persistence.PersistenceManager-URLHolder> + <gate.creole.Plugin-Maven> + <group>uk.ac.gate.plugins</group> + <artifact>annie</artifact> + <version>9.0-SNAPSHOT</version> + </gate.creole.Plugin-Maven> + <gate.creole.Plugin-Maven> + <group>uk.ac.gate.plugins</group> + <artifact>lang-russian</artifact> + <version>9.0-SNAPSHOT</version> + </gate.creole.Plugin-Maven> </localList> <collectionType>java.util.ArrayList</collectionType> </urlList> Modified: gate/branches/sawdust2/plugins/Lang_Russian/src/main/resources/resources/RussIE_ortho.xgapp =================================================================== --- gate/branches/sawdust2/plugins/Lang_Russian/resources/RussIE_ortho.xgapp 2017-02-08 02:23:45 UTC (rev 20075) +++ gate/branches/sawdust2/plugins/Lang_Russian/src/main/resources/resources/RussIE_ortho.xgapp 2017-02-08 09:50:13 UTC (rev 20076) @@ -2,12 +2,16 @@ <gate.util.persistence.GateApplication> <urlList class='gate.util.persistence.CollectionPersistence'> <localList> - <gate.util.persistence.PersistenceManager-URLHolder> - <urlString>$gatehome$plugins/ANNIE/</urlString> - </gate.util.persistence.PersistenceManager-URLHolder> - <gate.util.persistence.PersistenceManager-URLHolder> - <urlString>$relpath$..</urlString> - </gate.util.persistence.PersistenceManager-URLHolder> + <gate.creole.Plugin-Maven> + <group>uk.ac.gate.plugins</group> + <artifact>annie</artifact> + <version>9.0-SNAPSHOT</version> + </gate.creole.Plugin-Maven> + <gate.creole.Plugin-Maven> + <group>uk.ac.gate.plugins</group> + <artifact>lang-russian</artifact> + <version>9.0-SNAPSHOT</version> + </gate.creole.Plugin-Maven> </localList> <collectionType>java.util.ArrayList</collectionType> </urlList> Modified: gate/branches/sawdust2/plugins/Lang_Russian/src/main/resources/resources/RussIE_ortho_inflex.xgapp =================================================================== --- gate/branches/sawdust2/plugins/Lang_Russian/resources/RussIE_ortho_inflex.xgapp 2017-02-08 02:23:45 UTC (rev 20075) +++ gate/branches/sawdust2/plugins/Lang_Russian/src/main/resources/resources/RussIE_ortho_inflex.xgapp 2017-02-08 09:50:13 UTC (rev 20076) @@ -2,12 +2,16 @@ <gate.util.persistence.GateApplication> <urlList class='gate.util.persistence.CollectionPersistence'> <localList> - <gate.util.persistence.PersistenceManager-URLHolder> - <urlString>$gatehome$plugins/ANNIE/</urlString> - </gate.util.persistence.PersistenceManager-URLHolder> - <gate.util.persistence.PersistenceManager-URLHolder> - <urlString>$relpath$..</urlString> - </gate.util.persistence.PersistenceManager-URLHolder> + <gate.creole.Plugin-Maven> + <group>uk.ac.gate.plugins</group> + <artifact>annie</artifact> + <version>9.0-SNAPSHOT</version> + </gate.creole.Plugin-Maven> + <gate.creole.Plugin-Maven> + <group>uk.ac.gate.plugins</group> + <artifact>lang-russian</artifact> + <version>9.0-SNAPSHOT</version> + </gate.creole.Plugin-Maven> </localList> <collectionType>java.util.ArrayList</collectionType> </urlList> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gat...@us...> - 2017-02-08 02:23:47
|
Revision: 20075 http://sourceforge.net/p/gate/code/20075 Author: gate-project Date: 2017-02-08 02:23:45 +0000 (Wed, 08 Feb 2017) Log Message: ----------- Build number update (build 5737) Modified Paths: -------------- gate/trunk/build/build.properties gate/trunk/build/build.txt Modified: gate/trunk/build/build.properties =================================================================== --- gate/trunk/build/build.properties 2017-02-07 20:02:16 UTC (rev 20074) +++ gate/trunk/build/build.properties 2017-02-08 02:23:45 UTC (rev 20075) @@ -1,4 +1,4 @@ #Build Number for ANT. Do not edit! -#Tue Feb 07 02:09:52 GMT 2017 +#Wed Feb 08 02:10:10 GMT 2017 cvs.version=$Id\: build.properties 7542 2006-07-17 14\:26\:51Z ian_roberts $ -build.number=5737 +build.number=5738 Modified: gate/trunk/build/build.txt =================================================================== --- gate/trunk/build/build.txt 2017-02-07 20:02:16 UTC (rev 20074) +++ gate/trunk/build/build.txt 2017-02-08 02:23:45 UTC (rev 20075) @@ -1 +1 @@ -5736 \ No newline at end of file +5737 \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mar...@us...> - 2017-02-07 20:02:19
|
Revision: 20074 http://sourceforge.net/p/gate/code/20074 Author: markagreenwood Date: 2017-02-07 20:02:16 +0000 (Tue, 07 Feb 2017) Log Message: ----------- build the Welsh plugin Modified Paths: -------------- gate/branches/sawdust2/plugins/pom.xml Modified: gate/branches/sawdust2/plugins/pom.xml =================================================================== --- gate/branches/sawdust2/plugins/pom.xml 2017-02-07 20:01:21 UTC (rev 20073) +++ gate/branches/sawdust2/plugins/pom.xml 2017-02-07 20:02:16 UTC (rev 20074) @@ -44,6 +44,7 @@ <module>Format_Twitter</module> <module>Groovy</module> <module>JAPE_Plus</module> + <module>Lang_Welsh</module> <module>Language_Identification</module> <module>Linguistic_Simplifier</module> <module>OpenNLP</module> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mar...@us...> - 2017-02-07 20:01:24
|
Revision: 20073 http://sourceforge.net/p/gate/code/20073 Author: markagreenwood Date: 2017-02-07 20:01:21 +0000 (Tue, 07 Feb 2017) Log Message: ----------- another mavenized plugin done Modified Paths: -------------- gate/branches/sawdust2/plugins/Lang_Welsh/.classpath gate/branches/sawdust2/plugins/Lang_Welsh/.project gate/branches/sawdust2/plugins/Lang_Welsh/src/main/resources/resources/CYMRIE.xgapp Added Paths: ----------- gate/branches/sawdust2/plugins/Lang_Welsh/pom.xml gate/branches/sawdust2/plugins/Lang_Welsh/src/main/ gate/branches/sawdust2/plugins/Lang_Welsh/src/main/java/ gate/branches/sawdust2/plugins/Lang_Welsh/src/main/java/wnlt/ gate/branches/sawdust2/plugins/Lang_Welsh/src/main/resources/ gate/branches/sawdust2/plugins/Lang_Welsh/src/main/resources/creole.xml gate/branches/sawdust2/plugins/Lang_Welsh/src/main/resources/gate/ gate/branches/sawdust2/plugins/Lang_Welsh/src/main/resources/resources/ Removed Paths: ------------- gate/branches/sawdust2/plugins/Lang_Welsh/build.xml gate/branches/sawdust2/plugins/Lang_Welsh/creole.xml gate/branches/sawdust2/plugins/Lang_Welsh/resources/ gate/branches/sawdust2/plugins/Lang_Welsh/src/gate/ gate/branches/sawdust2/plugins/Lang_Welsh/src/wnlt/ Property Changed: ---------------- gate/branches/sawdust2/plugins/Lang_Welsh/ Index: gate/branches/sawdust2/plugins/Lang_Welsh =================================================================== --- gate/branches/sawdust2/plugins/Lang_Welsh 2017-02-07 19:27:09 UTC (rev 20072) +++ gate/branches/sawdust2/plugins/Lang_Welsh 2017-02-07 20:01:21 UTC (rev 20073) Property changes on: gate/branches/sawdust2/plugins/Lang_Welsh ___________________________________________________________________ Modified: svn:ignore ## -1,2 +1,2 ## -classes -wnlt.jar +target +.settings Modified: gate/branches/sawdust2/plugins/Lang_Welsh/.classpath =================================================================== --- gate/branches/sawdust2/plugins/Lang_Welsh/.classpath 2017-02-07 19:27:09 UTC (rev 20072) +++ gate/branches/sawdust2/plugins/Lang_Welsh/.classpath 2017-02-07 20:01:21 UTC (rev 20073) @@ -1,7 +1,31 @@ <?xml version="1.0" encoding="UTF-8"?> <classpath> - <classpathentry kind="src" path="src"/> - <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/> - <classpathentry combineaccessrules="false" kind="src" path="/GATE"/> - <classpathentry kind="output" path="classes"/> + <classpathentry kind="src" output="target/classes" path="src/main/java"> + <attributes> + <attribute name="optional" value="true"/> + <attribute name="maven.pomderived" value="true"/> + </attributes> + </classpathentry> + <classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"> + <attributes> + <attribute name="maven.pomderived" value="true"/> + </attributes> + </classpathentry> + <classpathentry kind="src" output="target/test-classes" path="src/test/java"> + <attributes> + <attribute name="optional" value="true"/> + <attribute name="maven.pomderived" value="true"/> + </attributes> + </classpathentry> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"> + <attributes> + <attribute name="maven.pomderived" value="true"/> + </attributes> + </classpathentry> + <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"> + <attributes> + <attribute name="maven.pomderived" value="true"/> + </attributes> + </classpathentry> + <classpathentry kind="output" path="target/classes"/> </classpath> Modified: gate/branches/sawdust2/plugins/Lang_Welsh/.project =================================================================== --- gate/branches/sawdust2/plugins/Lang_Welsh/.project 2017-02-07 19:27:09 UTC (rev 20072) +++ gate/branches/sawdust2/plugins/Lang_Welsh/.project 2017-02-07 20:01:21 UTC (rev 20073) @@ -10,8 +10,14 @@ <arguments> </arguments> </buildCommand> + <buildCommand> + <name>org.eclipse.m2e.core.maven2Builder</name> + <arguments> + </arguments> + </buildCommand> </buildSpec> <natures> <nature>org.eclipse.jdt.core.javanature</nature> + <nature>org.eclipse.m2e.core.maven2Nature</nature> </natures> </projectDescription> Deleted: gate/branches/sawdust2/plugins/Lang_Welsh/build.xml =================================================================== --- gate/branches/sawdust2/plugins/Lang_Welsh/build.xml 2017-02-07 19:27:09 UTC (rev 20072) +++ gate/branches/sawdust2/plugins/Lang_Welsh/build.xml 2017-02-07 20:01:21 UTC (rev 20073) @@ -1,92 +0,0 @@ -<project name="Lang_Welsh" basedir="." default="jar"> - <!-- Prevent Ant from warning about includeantruntime not being set --> - <property name="build.sysclasspath" value="ignore" /> - - <property file="build.properties" /> - - <property name="gate.home" location="../../" /> - <property name="gate.lib" location="${gate.home}/lib" /> - <property name="gate.jar" location="${gate.home}/bin/gate.jar" /> - - <property name="src.dir" location="src" /> - <property name="classes.dir" location="classes" /> - <property name="jar.location" location="wnlt.jar" /> - <property name="doc.dir" location="doc" /> - <property name="javadoc.dir" location="${doc.dir}/javadoc" /> - <property name="gate.compile.maxwarnings" value="10000" /> - - <!-- Path to compile - includes gate.jar and GATE/lib/*.jar --> - <path id="compile.classpath"> - <pathelement location="${gate.jar}" /> - <fileset dir="${gate.lib}" includes="*.jar" /> - </path> - - <!-- create build directory structure --> - <target name="prepare"> - <mkdir dir="${classes.dir}" /> - </target> - - <!-- compile the source --> - <target name="compile" depends="prepare"> - <javac classpathref="compile.classpath" - srcdir="${src.dir}" - destdir="${classes.dir}" - debug="true" - debuglevel="lines,source" - encoding="UTF-8" - source="1.6" - target="1.6"> - <compilerarg value="-Xmaxwarns" /> - <compilerarg value="${gate.compile.maxwarnings}" /> - <compilerarg value="-Xlint:all" /> - </javac> - </target> - - <!-- copy resources (i.e. anything non-.java) from src to classes --> - <target name="copy.resources" depends="prepare"> - <copy todir="${classes.dir}" includeEmptyDirs="true"> - <fileset dir="${src.dir}" excludes="**/*.java" /> - </copy> - </target> - - <!-- create the JAR file --> - <target name="jar" depends="compile, copy.resources"> - <jar destfile="${jar.location}" update="false" basedir="${classes.dir}" /> - </target> - - <!-- remove the generated .class files --> - <target name="clean.classes"> - <delete dir="${classes.dir}" /> - </target> - - <!-- Clean up - remove .class and .jar files --> - <target name="clean" depends="clean.classes"> - <delete file="${jar.location}" /> - </target> - - <!-- Build JavaDoc documentation --> - <target name="doc.prepare"> - <mkdir dir="${javadoc.dir}" /> - </target> - - <target name="javadoc" depends="doc.prepare"> - <javadoc destdir="${javadoc.dir}" packagenames="*" classpathref="compile.classpath" encoding="UTF-8" windowtitle="${plugin.name} JavaDoc" source="1.6"> - <sourcepath> - <pathelement location="${src.dir}" /> - </sourcepath> - <link href="http://docs.oracle.com/javase/6/docs/api/" /> - <link href="http://gate.ac.uk/gate/doc/javadoc/" /> - </javadoc> - </target> - - <!-- Targets used by the main GATE build file: - build: build the plugin - just calls "jar" target - test : run the unit tests - there aren't any - distro.prepare: remove intermediate files that shouldn't be in the - distribution - --> - <target name="build" depends="jar" /> - <target name="test" /> - <target name="distro.prepare" depends="clean.classes" /> - -</project> Deleted: gate/branches/sawdust2/plugins/Lang_Welsh/creole.xml =================================================================== --- gate/branches/sawdust2/plugins/Lang_Welsh/creole.xml 2017-02-07 19:27:09 UTC (rev 20072) +++ gate/branches/sawdust2/plugins/Lang_Welsh/creole.xml 2017-02-07 20:01:21 UTC (rev 20073) @@ -1,10 +0,0 @@ -<?xml version="1.0"?> -<!-- $Id: creole.xml 30100 2016-03-19 10:00:45Z andreasvlachidis $ --> -<!-- creole.xml for Welsh Natural Language Toolkit PR--> -<CREOLE-DIRECTORY> - - <JAR SCAN="true">wnlt.jar</JAR> - <REQUIRES>../ANNIE</REQUIRES> - <REQUIRES>../Tools</REQUIRES> - -</CREOLE-DIRECTORY> Added: gate/branches/sawdust2/plugins/Lang_Welsh/pom.xml =================================================================== --- gate/branches/sawdust2/plugins/Lang_Welsh/pom.xml (rev 0) +++ gate/branches/sawdust2/plugins/Lang_Welsh/pom.xml 2017-02-07 20:01:21 UTC (rev 20073) @@ -0,0 +1,51 @@ + +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>uk.ac.gate.plugins</groupId> + <artifactId>base-plugin</artifactId> + <!-- this should be the version of GATE you wish to build against --> + <version>9.0-SNAPSHOT</version> + <relativePath>../../Plugin_Base/pom.xml</relativePath> + </parent> + + <!-- this is the description of this plugin --> + <groupId>uk.ac.gate.plugins</groupId> + <artifactId>lang-welsh</artifactId> + <version>9.0-SNAPSHOT</version> + + <licenses> + <license> + <name>GNU Lesser General Public License (LGPL), Version 3</name> + <url>http://www.gnu.org/licenses/lgpl-3.0.txt</url> + <distribution>repo</distribution> + </license> + </licenses> + + <organization> + <name>GATE</name> + <url>http://gate.ac.uk</url> + </organization> + + <dependencies> + <!-- add any other libraries your plugin depends on. Any other GATE plugins + you depend on at compile time should use the provided scope --> + <dependency> + <groupId>uk.ac.gate.plugins</groupId> + <artifactId>annie</artifactId> + <version>9.0-SNAPSHOT</version> + <scope>provided</scope> + </dependency> + + <dependency> + <groupId>uk.ac.gate.plugins</groupId> + <artifactId>tools</artifactId> + <version>9.0-SNAPSHOT</version> + <scope>provided</scope> + </dependency> + </dependencies> + +</project> Copied: gate/branches/sawdust2/plugins/Lang_Welsh/src/main/resources/creole.xml (from rev 20070, gate/branches/sawdust2/plugins/Lang_Welsh/creole.xml) =================================================================== --- gate/branches/sawdust2/plugins/Lang_Welsh/src/main/resources/creole.xml (rev 0) +++ gate/branches/sawdust2/plugins/Lang_Welsh/src/main/resources/creole.xml 2017-02-07 20:01:21 UTC (rev 20073) @@ -0,0 +1,6 @@ +<?xml version="1.0"?> +<!-- creole.xml for Welsh Natural Language Toolkit PR--> +<CREOLE-DIRECTORY> + <REQUIRES GROUP="uk.ac.gate.plugins" ARTIFACT="annie" VERSION="9.0-SNAPSHOT"/> + <REQUIRES GROUP="uk.ac.gate.plugins" ARTIFACT="tools" VERSION="9.0-SNAPSHOT"/> +</CREOLE-DIRECTORY> Modified: gate/branches/sawdust2/plugins/Lang_Welsh/src/main/resources/resources/CYMRIE.xgapp =================================================================== --- gate/branches/sawdust2/plugins/Lang_Welsh/resources/CYMRIE.xgapp 2017-02-07 13:36:44 UTC (rev 20070) +++ gate/branches/sawdust2/plugins/Lang_Welsh/src/main/resources/resources/CYMRIE.xgapp 2017-02-07 20:01:21 UTC (rev 20073) @@ -1,17 +1,23 @@ <gate.util.persistence.GateApplication> <urlList class="gate.util.persistence.CollectionPersistence"> <localList> - <gate.util.persistence.PersistenceManager-URLHolder> - <urlString>$relpath$../../ANNIE</urlString> - </gate.util.persistence.PersistenceManager-URLHolder> - <gate.util.persistence.PersistenceManager-URLHolder> - <urlString>$relpath$../../Tools</urlString> - </gate.util.persistence.PersistenceManager-URLHolder> - <gate.util.persistence.PersistenceManager-URLHolder> - <urlString>$relpath$..</urlString> - </gate.util.persistence.PersistenceManager-URLHolder> + <gate.creole.Plugin-Maven> + <group>uk.ac.gate.plugins</group> + <artifact>annie</artifact> + <version>9.0-SNAPSHOT</version> + </gate.creole.Plugin-Maven> + <gate.creole.Plugin-Maven> + <group>uk.ac.gate.plugins</group> + <artifact>tools</artifact> + <version>9.0-SNAPSHOT</version> + </gate.creole.Plugin-Maven> + <gate.creole.Plugin-Maven> + <group>uk.ac.gate.plugins</group> + <artifact>lang-welsh</artifact> + <version>9.0-SNAPSHOT</version> + </gate.creole.Plugin-Maven> </localList> - <collectionType>java.util.ArrayList</collectionType> + <collectionType>java.util.Collections$UnmodifiableSet</collectionType> </urlList> <application class="gate.util.persistence.ConditionalSerialAnalyserControllerPersistence"> <strategiesList class="gate.util.persistence.CollectionPersistence"> @@ -20,40 +26,10 @@ <runMode>1</runMode> <featureName></featureName> <featureValue></featureValue> - <pr class="gate.util.persistence.PRPersistence"> + <pr class="gate.util.persistence.LanguageAnalyserPersistence"> <runtimeParams class="gate.util.persistence.MapPersistence"> <mapType>gate.util.SimpleFeatureMapImpl</mapType> - <localMap> - <entry> - <string>setsToKeep</string> - <gate.util.persistence.CollectionPersistence> - <localList> - <string>Key</string> - </localList> - <collectionType>java.util.ArrayList</collectionType> - </gate.util.persistence.CollectionPersistence> - </entry> - <entry> - <string>document</string> - <null/> - </entry> - <entry> - <string>annotationTypes</string> - <null/> - </entry> - <entry> - <string>corpus</string> - <null/> - </entry> - <entry> - <string>keepOriginalMarkupsAS</string> - <boolean>true</boolean> - </entry> - <entry> - <string>setsToRemove</string> - <null/> - </entry> - </localMap> + <localMap/> </runtimeParams> <resourceType>gate.creole.annotdelete.AnnotationDeletePR</resourceType> <resourceName>Document Reset</resourceName> @@ -74,43 +50,13 @@ <pr class="gate.util.persistence.LanguageAnalyserPersistence"> <runtimeParams class="gate.util.persistence.MapPersistence"> <mapType>gate.util.SimpleFeatureMapImpl</mapType> - <localMap> - <entry> - <string>annotationSetName</string> - <null/> - </entry> - <entry> - <string>document</string> - <null/> - </entry> - <entry> - <string>corpus</string> - <null/> - </entry> - </localMap> + <localMap/> </runtimeParams> <resourceType>wnlt.WelshTokeniser</resourceType> <resourceName>Tokenizer</resourceName> <initParams class="gate.util.persistence.MapPersistence"> <mapType>gate.util.SimpleFeatureMapImpl</mapType> - <localMap> - <entry> - <string>tokeniserRulesURL</string> - <gate.util.persistence.PersistenceManager-URLHolder> - <urlString>$relpath$Tokeniser/WelshTokeniser.rules</urlString> - </gate.util.persistence.PersistenceManager-URLHolder> - </entry> - <entry> - <string>transducerGrammarURL</string> - <gate.util.persistence.PersistenceManager-URLHolder> - <urlString>$relpath$Tokeniser/postprocess.jape</urlString> - </gate.util.persistence.PersistenceManager-URLHolder> - </entry> - <entry> - <string>encoding</string> - <string>UTF-8</string> - </entry> - </localMap> + <localMap/> </initParams> <features class="gate.util.persistence.MapPersistence"> <mapType>gate.util.SimpleFeatureMapImpl</mapType> @@ -125,47 +71,13 @@ <pr class="gate.util.persistence.LanguageAnalyserPersistence"> <runtimeParams class="gate.util.persistence.MapPersistence"> <mapType>gate.util.SimpleFeatureMapImpl</mapType> - <localMap> - <entry> - <string>outputASName</string> - <null/> - </entry> - <entry> - <string>document</string> - <null/> - </entry> - <entry> - <string>corpus</string> - <null/> - </entry> - <entry> - <string>inputASName</string> - <null/> - </entry> - </localMap> + <localMap/> </runtimeParams> <resourceType>wnlt.WelshSentenceSplitter</resourceType> <resourceName>Sentence Splitter</resourceName> <initParams class="gate.util.persistence.MapPersistence"> <mapType>gate.util.SimpleFeatureMapImpl</mapType> - <localMap> - <entry> - <string>encoding</string> - <string>UTF-8</string> - </entry> - <entry> - <string>gazetteerListsURL</string> - <gate.util.persistence.PersistenceManager-URLHolder> - <urlString>$relpath$sentenceSplitter/gazetteer/lists.def</urlString> - </gate.util.persistence.PersistenceManager-URLHolder> - </entry> - <entry> - <string>transducerURL</string> - <gate.util.persistence.PersistenceManager-URLHolder> - <urlString>$relpath$sentenceSplitter/grammar/main-single-nl.jape</urlString> - </gate.util.persistence.PersistenceManager-URLHolder> - </entry> - </localMap> + <localMap/> </initParams> <features class="gate.util.persistence.MapPersistence"> <mapType>gate.util.SimpleFeatureMapImpl</mapType> @@ -180,67 +92,13 @@ <pr class="gate.util.persistence.LanguageAnalyserPersistence"> <runtimeParams class="gate.util.persistence.MapPersistence"> <mapType>gate.util.SimpleFeatureMapImpl</mapType> - <localMap> - <entry> - <string>document</string> - <null/> - </entry> - <entry> - <string>corpus</string> - <null/> - </entry> - <entry> - <string>outputAnnotationType</string> - <string>Token</string> - </entry> - <entry> - <string>failOnMissingInputAnnotations</string> - <boolean>true</boolean> - </entry> - <entry> - <string>inputASName</string> - <null/> - </entry> - <entry> - <string>outputASName</string> - <null/> - </entry> - <entry> - <string>baseSentenceAnnotationType</string> - <string>Sentence</string> - </entry> - <entry> - <string>posTagAllTokens</string> - <boolean>true</boolean> - </entry> - <entry> - <string>baseTokenAnnotationType</string> - <string>Token</string> - </entry> - </localMap> + <localMap/> </runtimeParams> <resourceType>wnlt.WelshPOSTagger</resourceType> <resourceName>Part of Speech Tagger</resourceName> <initParams class="gate.util.persistence.MapPersistence"> <mapType>gate.util.SimpleFeatureMapImpl</mapType> - <localMap> - <entry> - <string>rulesURL</string> - <gate.util.persistence.PersistenceManager-URLHolder> - <urlString>$relpath$postag/ruleset</urlString> - </gate.util.persistence.PersistenceManager-URLHolder> - </entry> - <entry> - <string>encoding</string> - <string>UTF-8</string> - </entry> - <entry> - <string>lexiconURL</string> - <gate.util.persistence.PersistenceManager-URLHolder> - <urlString>$relpath$postag/lexicon</urlString> - </gate.util.persistence.PersistenceManager-URLHolder> - </entry> - </localMap> + <localMap/> </initParams> <features class="gate.util.persistence.MapPersistence"> <mapType>gate.util.SimpleFeatureMapImpl</mapType> @@ -255,81 +113,13 @@ <pr class="gate.util.persistence.PRPersistence"> <runtimeParams class="gate.util.persistence.MapPersistence"> <mapType>gate.util.SimpleFeatureMapImpl</mapType> - <localMap> - <entry> - <string>considerPOSTag</string> - <boolean>true</boolean> - </entry> - <entry> - <string>document</string> - <null/> - </entry> - <entry> - <string>corpus</string> - <null/> - </entry> - <entry> - <string>rootFeatureName</string> - <string>lemma</string> - </entry> - <entry> - <string>annotationSetName</string> - <null/> - </entry> - <entry> - <string>failOnMissingInputAnnotations</string> - <boolean>true</boolean> - </entry> - <entry> - <string>affixFeatureName</string> - <string>affix</string> - </entry> - </localMap> + <localMap/> </runtimeParams> <resourceType>wnlt.morph.WelshMorph</resourceType> <resourceName>Morphological Analyser</resourceName> <initParams class="gate.util.persistence.MapPersistence"> <mapType>gate.util.SimpleFeatureMapImpl</mapType> - <localMap> - <entry> - <string>caseSensitive</string> - <boolean>false</boolean> - </entry> - <entry> - <string>encoding</string> - <string>UTF-8</string> - </entry> - <entry> - <string>gazetteerListsURL</string> - <gate.util.persistence.PersistenceManager-URLHolder> - <urlString>$relpath$morph/gazetteer/lists.def</urlString> - </gate.util.persistence.PersistenceManager-URLHolder> - </entry> - <entry> - <string>rulesFile</string> - <gate.util.persistence.PersistenceManager-URLHolder> - <urlString>$relpath$morph/default.rul</urlString> - </gate.util.persistence.PersistenceManager-URLHolder> - </entry> - <entry> - <string>transducerURL</string> - <gate.util.persistence.PersistenceManager-URLHolder> - <urlString>$relpath$morph/grammar/postprocess.jape</urlString> - </gate.util.persistence.PersistenceManager-URLHolder> - </entry> - <entry> - <string>validationTransducerURL</string> - <gate.util.persistence.PersistenceManager-URLHolder> - <urlString>$relpath$morph/grammar/validation-main.jape</urlString> - </gate.util.persistence.PersistenceManager-URLHolder> - </entry> - <entry> - <string>lexiconURL</string> - <gate.util.persistence.PersistenceManager-URLHolder> - <urlString>$relpath$morph/lexicon</urlString> - </gate.util.persistence.PersistenceManager-URLHolder> - </entry> - </localMap> + <localMap/> </initParams> <features class="gate.util.persistence.MapPersistence"> <mapType>gate.util.SimpleFeatureMapImpl</mapType> @@ -346,22 +136,6 @@ <mapType>gate.util.SimpleFeatureMapImpl</mapType> <localMap> <entry> - <string>wholeWordsOnly</string> - <boolean>true</boolean> - </entry> - <entry> - <string>longestMatchOnly</string> - <boolean>true</boolean> - </entry> - <entry> - <string>document</string> - <null/> - </entry> - <entry> - <string>corpus</string> - <null/> - </entry> - <entry> <string>annotationSetName</string> <string></string> </entry> @@ -371,26 +145,7 @@ <resourceName>CYMRIE Gazetter</resourceName> <initParams class="gate.util.persistence.MapPersistence"> <mapType>gate.util.SimpleFeatureMapImpl</mapType> - <localMap> - <entry> - <string>listsURL</string> - <gate.util.persistence.PersistenceManager-URLHolder> - <urlString>$relpath$gazetteer/lists.def</urlString> - </gate.util.persistence.PersistenceManager-URLHolder> - </entry> - <entry> - <string>encoding</string> - <string>UTF-8</string> - </entry> - <entry> - <string>gazetteerFeatureSeparator</string> - <string>:</string> - </entry> - <entry> - <string>caseSensitive</string> - <boolean>true</boolean> - </entry> - </localMap> + <localMap/> </initParams> <features class="gate.util.persistence.MapPersistence"> <mapType>gate.util.SimpleFeatureMapImpl</mapType> @@ -402,30 +157,11 @@ <runMode>1</runMode> <featureName></featureName> <featureValue></featureValue> - <pr class="gate.util.persistence.PRPersistence"> + <pr class="gate.util.persistence.LanguageAnalyserPersistence"> <runtimeParams class="gate.util.persistence.MapPersistence"> <mapType>gate.util.SimpleFeatureMapImpl</mapType> <localMap> <entry> - <string>outputASName</string> - <null/> - </entry> - <entry> - <string>document</string> - <null/> - </entry> - <entry> - <string>inputASName</string> - <null/> - </entry> - </localMap> - </runtimeParams> - <resourceType>gate.creole.gazetteer.FlexibleGazetteer</resourceType> - <resourceName>CYMRIE Flexible Gazetteer</resourceName> - <initParams class="gate.util.persistence.MapPersistence"> - <mapType>gate.util.SimpleFeatureMapImpl</mapType> - <localMap> - <entry> <string>inputFeatureNames</string> <gate.util.persistence.CollectionPersistence> <localList> @@ -440,6 +176,12 @@ <gate.util.persistence.LanguageAnalyserPersistence reference="../../../../../../gate.util.persistence.AnalyserRunningStrategyPersistence[6]/pr"/> </entry> </localMap> + </runtimeParams> + <resourceType>gate.creole.gazetteer.FlexibleGazetteer</resourceType> + <resourceName>CYMRIE Flexible Gazetteer</resourceName> + <initParams class="gate.util.persistence.MapPersistence"> + <mapType>gate.util.SimpleFeatureMapImpl</mapType> + <localMap/> </initParams> <features class="gate.util.persistence.MapPersistence"> <mapType>gate.util.SimpleFeatureMapImpl</mapType> @@ -454,53 +196,13 @@ <pr class="gate.util.persistence.LanguageAnalyserPersistence"> <runtimeParams class="gate.util.persistence.MapPersistence"> <mapType>gate.util.SimpleFeatureMapImpl</mapType> - <localMap> - <entry> - <string>outputASName</string> - <null/> - </entry> - <entry> - <string>document</string> - <null/> - </entry> - <entry> - <string>corpus</string> - <null/> - </entry> - <entry> - <string>inputASName</string> - <null/> - </entry> - <entry> - <string>enableDebugging</string> - <boolean>false</boolean> - </entry> - </localMap> + <localMap/> </runtimeParams> <resourceType>wnlt.WelshNE</resourceType> <resourceName>NE Transducer</resourceName> <initParams class="gate.util.persistence.MapPersistence"> <mapType>gate.util.SimpleFeatureMapImpl</mapType> - <localMap> - <entry> - <string>encoding</string> - <string>UTF-8</string> - </entry> - <entry> - <string>grammarURL</string> - <gate.util.persistence.PersistenceManager-URLHolder> - <urlString>$relpath$NE/main.jape</urlString> - </gate.util.persistence.PersistenceManager-URLHolder> - </entry> - <entry> - <string>annotationAccessors</string> - <null/> - </entry> - <entry> - <string>operators</string> - <null/> - </entry> - </localMap> + <localMap/> </initParams> <features class="gate.util.persistence.MapPersistence"> <mapType>gate.util.SimpleFeatureMapImpl</mapType> @@ -513,13 +215,13 @@ </strategiesList> <prList class="gate.util.persistence.CollectionPersistence"> <localList> - <gate.util.persistence.PRPersistence reference="../../../strategiesList/localList/gate.util.persistence.AnalyserRunningStrategyPersistence/pr"/> + <gate.util.persistence.LanguageAnalyserPersistence reference="../../../strategiesList/localList/gate.util.persistence.AnalyserRunningStrategyPersistence/pr"/> <gate.util.persistence.LanguageAnalyserPersistence reference="../../../strategiesList/localList/gate.util.persistence.AnalyserRunningStrategyPersistence[2]/pr"/> <gate.util.persistence.LanguageAnalyserPersistence reference="../../../strategiesList/localList/gate.util.persistence.AnalyserRunningStrategyPersistence[3]/pr"/> <gate.util.persistence.LanguageAnalyserPersistence reference="../../../strategiesList/localList/gate.util.persistence.AnalyserRunningStrategyPersistence[4]/pr"/> <gate.util.persistence.PRPersistence reference="../../../strategiesList/localList/gate.util.persistence.AnalyserRunningStrategyPersistence[5]/pr"/> <gate.util.persistence.LanguageAnalyserPersistence reference="../../../strategiesList/localList/gate.util.persistence.AnalyserRunningStrategyPersistence[6]/pr"/> - <gate.util.persistence.PRPersistence reference="../../../strategiesList/localList/gate.util.persistence.AnalyserRunningStrategyPersistence[7]/pr"/> + <gate.util.persistence.LanguageAnalyserPersistence reference="../../../strategiesList/localList/gate.util.persistence.AnalyserRunningStrategyPersistence[7]/pr"/> <gate.util.persistence.LanguageAnalyserPersistence reference="../../../strategiesList/localList/gate.util.persistence.AnalyserRunningStrategyPersistence[8]/pr"/> </localList> <collectionType>java.util.ArrayList</collectionType> @@ -535,9 +237,9 @@ <localMap> <entry> <string>gate.gui.icon</string> - <string>welsh</string> + <string>welsh.png</string> </entry> </localMap> </features> </application> -</gate.util.persistence.GateApplication> \ No newline at end of file +</gate.util.persistence.GateApplication> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <mar...@us...> - 2017-02-07 19:27:12
|
Revision: 20072 http://sourceforge.net/p/gate/code/20072 Author: markagreenwood Date: 2017-02-07 19:27:09 +0000 (Tue, 07 Feb 2017) Log Message: ----------- added the snapshot repo to the other top level pom.xml files so that we can deploy every component to the repo when we need to Modified Paths: -------------- gate/branches/sawdust2/Plugin_Base/pom.xml gate/branches/sawdust2/Test-Utils/pom.xml gate/branches/sawdust2/gate-maven-plugin/pom.xml gate/branches/sawdust2/pom.xml Modified: gate/branches/sawdust2/Plugin_Base/pom.xml =================================================================== --- gate/branches/sawdust2/Plugin_Base/pom.xml 2017-02-07 15:01:32 UTC (rev 20071) +++ gate/branches/sawdust2/Plugin_Base/pom.xml 2017-02-07 19:27:09 UTC (rev 20072) @@ -167,4 +167,13 @@ </plugins> </reporting> + <distributionManagement> + <snapshotRepository> + <id>gate.snapshots</id> + <name>GATE Snapshots Repository</name> + <url>http://repo.gate.ac.uk/content/repositories/snapshots</url> + <layout>default</layout> + </snapshotRepository> + </distributionManagement> + </project> Modified: gate/branches/sawdust2/Test-Utils/pom.xml =================================================================== --- gate/branches/sawdust2/Test-Utils/pom.xml 2017-02-07 15:01:32 UTC (rev 20071) +++ gate/branches/sawdust2/Test-Utils/pom.xml 2017-02-07 19:27:09 UTC (rev 20072) @@ -54,4 +54,14 @@ <maven.compiler.target>1.8</maven.compiler.target> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> + + <distributionManagement> + <snapshotRepository> + <id>gate.snapshots</id> + <name>GATE Snapshots Repository</name> + <url>http://repo.gate.ac.uk/content/repositories/snapshots</url> + <layout>default</layout> + </snapshotRepository> + </distributionManagement> + </project> Modified: gate/branches/sawdust2/gate-maven-plugin/pom.xml =================================================================== --- gate/branches/sawdust2/gate-maven-plugin/pom.xml 2017-02-07 15:01:32 UTC (rev 20071) +++ gate/branches/sawdust2/gate-maven-plugin/pom.xml 2017-02-07 19:27:09 UTC (rev 20072) @@ -52,5 +52,13 @@ </dependency> </dependencies> + <distributionManagement> + <snapshotRepository> + <id>gate.snapshots</id> + <name>GATE Snapshots Repository</name> + <url>http://repo.gate.ac.uk/content/repositories/snapshots</url> + <layout>default</layout> + </snapshotRepository> + </distributionManagement> </project> Modified: gate/branches/sawdust2/pom.xml =================================================================== --- gate/branches/sawdust2/pom.xml 2017-02-07 15:01:32 UTC (rev 20071) +++ gate/branches/sawdust2/pom.xml 2017-02-07 19:27:09 UTC (rev 20072) @@ -29,11 +29,6 @@ </developer> </developers> - <dependencies> - <!-- add any other libraries your plugin depends on. Any other GATE plugins - you depend on at compile time should use the provided scope --> - </dependencies> - <modules> <module>gate-core</module> <module>gate-maven-plugin</module> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |