Skip to content

averbis/ruta-pear-archetype

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ruta-pear-archetype Build Status

Project template to bootstrap UIMA Ruta annotators and package them as a PEAR package.

Prerequisites

  • JDK 1.8 or later
  • Maven

Generate a new Ruta Annotator Project

There is no need to clone this repo to generate a new Ruta annotator project. Just execute the following command:

mvn archetype:generate -DarchetypeGroupId=de.averbis.textanalysis -DarchetypeArtifactId=ruta-pear-archetype -DarchetypeVersion=2.0.0

You need to define a groupId, artifactId and version for your UIMA Ruta annotator project.

  1. Specify a groupId for the project. It must follow Java's package name rules.
Define value for property 'groupId': com.example
  1. Define an artifactId for the project. It should consist of lowercase letters and must not contain special characters or dots.
Define value for property 'artifactId': my-ruta-annotator
  1. Define a version for your Ruta annotator.
Define value for property 'version' 1.0-SNAPSHOT: 1.0
  1. Define a package for your Ruta annotator. It must follow Java's package name rules.
Define value for property 'package': com.example.nlp
  1. Define a rutaScriptName for your Ruta annotator. It should always begin with a capital letter and must not contain any special characters or space characters. If there are multiple words in the rutaScriptName, then each word should start with a capital letter.
Define value for property 'rutaScriptName' Myrutaannotator: MyAnnotator
  1. Review and confirm the Ruta annotator configuration:
Confirm properties configuration:
groupId: com.example
artifactId: my-ruta-annotator
version: 1.0
package: com.example.nlp
rutaScriptName: MyAnnotator
 Y: : y

This will generate a Ruta annotator project structure within the my-ruta-annotator directory:

my-ruta-annotator/
├── pom.xml
└── src
    ├── main
    │   ├── java
    │   │   └── com
    │   │       └── example
    │   │           └── nlp
    │   │               └── GenerateConfiguredDescriptorTemplate.java
    │   ├── resources
    │   │   ├── descriptor
    │   │   │   └── GeneratedBasicEngine.xml
    │   │   └── META-INF
    │   │       └── org.apache.uima.fit
    │   │           └── types.txt
    │   └── ruta
    │       └── com
    │           └── example
    │               └── nlp
    │                   └── MyRutaAnnotator.ruta
    └── test
        └── java
            └── com
                └── example
                    └── nlp
                        └── PearPackageIT.java

Build the generated Ruta Annotator Project

Navigate into the project directory:

cd my-ruta-annotator

Build the Ruta annotator project with maven:

mvn clean install

This will assemble a PEAR package in the target directory.

target/my-ruta-annotator-1.0.pear

About

Template to create PEAR packaged UIMA Ruta annotators

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%