clerezza-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tomm...@apache.org
Subject svn commit: r1204524 - in /incubator/clerezza/trunk/parent/uima/uima.samples/src: main/java/org/apache/clerezza/uima/samples/services/ main/resources/META-INF/ test/java/org/apache/clerezza/uima/samples/services/
Date Mon, 21 Nov 2011 14:47:21 GMT
Author: tommaso
Date: Mon Nov 21 14:47:20 2011
New Revision: 1204524

URL: http://svn.apache.org/viewvc?rev=1204524&view=rev
Log:
[CLEREZZA-658] - changed service and annotator descriptor names to a more convenient one

Added:
    incubator/clerezza/trunk/parent/uima/uima.samples/src/main/resources/META-INF/OpenNLPPersonAOAE.xml
      - copied unchanged from r1204523, incubator/clerezza/trunk/parent/uima/uima.samples/src/main/resources/META-INF/AggregateOpenNLPNERAOAE.xml
Removed:
    incubator/clerezza/trunk/parent/uima/uima.samples/src/main/resources/META-INF/AggregateOpenNLPNERAOAE.xml
Modified:
    incubator/clerezza/trunk/parent/uima/uima.samples/src/main/java/org/apache/clerezza/uima/samples/services/OpenNLPNERAOService.java
    incubator/clerezza/trunk/parent/uima/uima.samples/src/test/java/org/apache/clerezza/uima/samples/services/OpenNLPNERAOServiceTest.java

Modified: incubator/clerezza/trunk/parent/uima/uima.samples/src/main/java/org/apache/clerezza/uima/samples/services/OpenNLPNERAOService.java
URL: http://svn.apache.org/viewvc/incubator/clerezza/trunk/parent/uima/uima.samples/src/main/java/org/apache/clerezza/uima/samples/services/OpenNLPNERAOService.java?rev=1204524&r1=1204523&r2=1204524&view=diff
==============================================================================
--- incubator/clerezza/trunk/parent/uima/uima.samples/src/main/java/org/apache/clerezza/uima/samples/services/OpenNLPNERAOService.java
(original)
+++ incubator/clerezza/trunk/parent/uima/uima.samples/src/main/java/org/apache/clerezza/uima/samples/services/OpenNLPNERAOService.java
Mon Nov 21 14:47:20 2011
@@ -46,13 +46,13 @@ import java.util.Map;
 @Path("/uima")
 public class OpenNLPNERAOService {
 
-  private static final String PATH = "/META-INF/AggregateOpenNLPNERAOAE.xml";
+  private static final String PATH = "/META-INF/OpenNLPPersonAOAE.xml";
   private static final String OUTPUTGRAPH = "outputgraph";
 
   @POST
-  @Path("regex")
+  @Path("opennlp/person")
   @Produces("application/rdf+xml")
-  public Graph enrichUri(@FormParam("uri") String uriString) {
+  public Graph extractPersons(@FormParam("uri") String uriString) {
     if (uriString == null || uriString.length() == 0)
       throw new WebApplicationException(Response.status(
               Response.Status.BAD_REQUEST).entity(new StringBuilder("No URI specified").toString()).build());

Modified: incubator/clerezza/trunk/parent/uima/uima.samples/src/test/java/org/apache/clerezza/uima/samples/services/OpenNLPNERAOServiceTest.java
URL: http://svn.apache.org/viewvc/incubator/clerezza/trunk/parent/uima/uima.samples/src/test/java/org/apache/clerezza/uima/samples/services/OpenNLPNERAOServiceTest.java?rev=1204524&r1=1204523&r2=1204524&view=diff
==============================================================================
--- incubator/clerezza/trunk/parent/uima/uima.samples/src/test/java/org/apache/clerezza/uima/samples/services/OpenNLPNERAOServiceTest.java
(original)
+++ incubator/clerezza/trunk/parent/uima/uima.samples/src/test/java/org/apache/clerezza/uima/samples/services/OpenNLPNERAOServiceTest.java
Mon Nov 21 14:47:20 2011
@@ -33,7 +33,7 @@ public class OpenNLPNERAOServiceTest {
   public void serviceExecutionTest() {
     try {
       OpenNLPNERAOService service = new OpenNLPNERAOService();
-      Graph graph = service.enrichUri(getClass().getResource("/ner_test_page.html").toURI().toString());
+      Graph graph = service.extractPersons(getClass().getResource("/ner_test_page.html").toURI().toString());
       assertNotNull(graph);
     } catch (Exception e) {
       fail(e.getLocalizedMessage());



Mime
View raw message