Martin Wunderlich | 31 Jul 22:00 2015
Picon
Picon

Question on JCasUtil's selectCovered(...)

Hi all, 

I am currently developing some feature extractors in the DKPro framework and I have come across a problem
with the Class type in the following method in org.apache.uima.fit.util.JCasUtil: 

  public static <T extends Annotation> List<T> selectCovered(JCas jCas, final Class<T> type,
          int begin, int end) {
    return cast(CasUtil.selectCovered(jCas.getCas(), getType(jCas, type), begin, end));
  }

In my type system I have a base type „Proposition" that extends „Annotation" and two more types which
are derived from the base type: „Conclusion“ and „Premise". If I use the base type for the generic
type parameter T in this method above, it works fine. If I use one of the sub-types of the base type, I get the
following error: 

	- Bound mismatch: The generic method selectCovered(JCas, Class<T>, int, int) of type JCasUtil is not
applicable for the arguments (JCas, Class<Conclusion>, int, int). The 
	 inferred type Conclusion is not a valid substitute for the bounded parameter <T extends Annotation>

Background is that I would like to use one abstract feature extractor for common code which is
parameterized with <T extends Proposition>  and the two concrete sub-class FE’s, which are
parameterized with the two sub-types. 

Maybe I have some misunderstanding regarding the use of Generics here. Could it be that in the definition of
selectCovered() the clause <T extends Annotation> allows only direct sub-types of Annotation?
Interestingly enough, if I don’t parameterize the sub-class FEs, I don’t get any errors. 
Thanks a lot. 

Cheers, 

(Continue reading)

Armin.Wegner | 30 Jul 09:41 2015
Picon

DKPro NamedEntity ClassCastException

Hello!

I'm getting a 

java.lang.ClassCastException: org.apache.uima.cas.impl.AnnotationImpl cannot be cast to
de.tudarmstadt.ukp.dkpro.core.api.ner.type.NamedEntity 

using the annotator below in a CPE. It's a Maven project using

de.tudarmstadt.ukp.dkpro.core.stanfordnlp-gpl:1.6.1,
de.tudarmstadt.ukp.dkpro.core.io.text-asl:1.6.1, and
uimafit-core:2.1.0.



import org.apache.uima.analysis_engine.AnalysisEngineProcessException;
import org.apache.uima.cas.CAS;
import org.apache.uima.cas.Type;
import org.apache.uima.cas.TypeSystem;
import org.apache.uima.fit.component.CasAnnotator_ImplBase;

import de.tudarmstadt.ukp.dkpro.core.api.ner.type.NamedEntity;

public class CastError extends CasAnnotator_ImplBase {
	private Type mType;

	 <at> Override
	public void process(CAS cas) throws AnalysisEngineProcessException {
		// The following line causes
		// Caused by: java.lang.ClassCastException: org.apache.uima.cas.impl.AnnotationImpl cannot be
(Continue reading)

Tom Devel | 28 Jul 01:37 2015
Picon

UIMA in Eclipse Mars, "Add UIMA nature", second empty window opens

I have been using UIMA in Eclipse Luna without problems under Linux for a
while, but now with a fresh Eclipse Mars, every time I click to add the
UIMA Nature to a project, Eclipse opens a second large, empty window.

To add UIMA 2.8.0 to Eclipse, I followed the instructions on
https://uima.apache.org/d/uimaj-2.8.0/overview_and_setup.html#ugr.ovv.eclipse_setup

From what it looks like, the UIMA Nature seems to be still successfully
added to the project, desc and other folders are created.

But this second window did not happen under Eclipse Luna, so I am worried
some functionality is broken (that I do not directly see) or dependency is
missing.

Did anyone experience a similar issue?

Thanks for any help
Tom
Peter van den Toorn | 25 Jul 09:19 2015

Need help getting UIMA RUTA pear file to work in simpleserver

Hello everyone.

Im struggling to get my UIMA RUTA pipeline to work in simple server. I have
a working UIMA
RUTA pipeline in the RUTA workbench. I added UIMA nature to the project and
after adding the
required jar files i generated the pear file.

The pear file runs successful on my local simple server instance. However
when i try to use the
same pear file to my hosted server (tomcat) the log file show the following
error:

Caused by: java.io.FileNotFoundException: Script [Main] cannot be found at
[{[/Users/petervandentoorn/Documents/workspace/reviews/script]}] or
classpath with extension
.ruta

I checked the contents of the pear package, and the ruta files are all in
the package. I don't
understand why simple server can't find the files in the pear package. I
also don't understand
why UIMA is using the paths of my local system. I thought the whole idea of
pear files are that
they can be exchanged between systems etc.

I hope someone can help me with this issue. It would be much appreciated.

Best regards,

(Continue reading)

Marshall Schor | 22 Jul 20:00 2015
Picon

[ANNOUNCE] Apache UIMA Java SDK 2.8.0 released

The Apache UIMA team is pleased to announce the release of the UIMA Java SDK
version 2.8.0.

Apache UIMA is a component architecture and framework for the analysis of
unstructured content like text, video and audio data.

This release is a bug fix release, plus a performance enhancement for some
iterator usage.
The second version number was incremented because we restored some APIs that
were accidentally
dropped in 2.7.0. Please visit http://uima.apache.org/news.html for more details.

-Marshall Schor, for the Apache UIMA community
Sergii Poluektov | 22 Jul 13:12 2015

DUCC multi-node installation. Beginner's questions.

Hello Everyone,

I am now trying to install DUCC in a cluster of 3 nodes. I went through and
completed a single-user installation of DUCC on each of my 3 boxes.
On each of them a passwordless ssh access for the user ducc has been
configured.

The documentation states:
"All systems in the DUCC cluster must have a shared filesystem and shared
user space (user directories are shared over NFS or an equivalent networked
file system, across the systems, and user ids and credentials are the
same)."

I am only starting with the cloud computing and that is why I am not sure
how to meet this requirement.
How I imagine this is that there is one master node being an NFS server
which shares its /home/ducc directory and there are 2 slave nodes being NFS
clients which can access the /home/ducc directory of the master.
Does it make sense?

I read the documentation as well as the mailing list very carefully but
unfortunatelly could not figure this out.
Maybe someone has a description of the NFS installation for some other but
similar cluster system?

Thanks in advance for the help.

Cheers,
Sergii
(Continue reading)

Armin.Wegner | 21 Jul 14:26 2015
Picon

Ruta - UIMA-4062

Hi Peter!

The change request UIMA-4062 is implemented, isn't it? So how does an end user use it? How to read a wordlist
as an UIMA external resource once and use it with Ruta.apply() and MARKFAST on every CAS?

Thanks,
Armin
Khirod Kant Naik | 19 Jul 16:00 2015
Picon

Dictionary Matching using Concept Mapper for single word entry.

Hi everyone,

I am unable to match text from dictionary if the enclosing span contains
only a single token.

For example - I am trying to match word "education" from my dictionary and
for the enclosing span I am using a sentence. So if sentence contains a
single token then I am not able to match it from dictionary.

Here is what I have tried,

When I have a sentence like - "Education <**something else**≥" then
conceptMapper matches "education".
While if I have a sentence like - "Education" then conceptMapper is not
picking it from dictionary.

So I have a question that *does conceptMapper requires you to have more
than 1 TokenAnnotation within the specified spanFeatureStructure ? *

P.S : This is the descriptor I am using

<?xml version="1.0" encoding="UTF-8"?>
> <taeDescription xmlns="http://uima.apache.org/resourceSpecifier">
>   <frameworkImplementation>org.apache.uima.java</frameworkImplementation>
>   <primitive>true</primitive>
>
> <annotatorImplementationName>org.apache.uima.conceptMapper.ConceptMapper</annotatorImplementationName>
>   <analysisEngineMetaData>
>     <name>Segment Heading Annotator</name>
>     <description/>
(Continue reading)

Ralph Lecessi | 18 Jul 13:53 2015
Picon

How to use cTakes as a UIMA component

Hello,

I'm interested in building an application in the Eclipse IDE
that uses the cTAKES library as a component in the UIMA apache
framework.

Is this possible? Could you point me to some documentation?

Thank you,

Ralph Lecessi
rlecessi@...

Renaud Richardet | 16 Jul 23:46 2015
Picon

looking for more informative exception messages when parsing invalid Ruta script

Hello,

When using Ruta in a non-Workbench setup (in my case, Maven), I don't
manage to catch Ruta script errors in a meaningful way. Here is an example:

"aaa\." -> MyAnnotation; // fails because of escaped dot

The thrown error is quite uninformative:

java.lang.ArrayIndexOutOfBoundsException: -1

at org.apache.uima.ruta.parser.RutaParser.emitErrorMessage(
RutaParser.java:365)

at org.apache.uima.ruta.parser.RutaParser.reportError(RutaParser.java:386)

at org.antlr.runtime.BaseRecognizer.recoverFromMismatchedToken(
BaseRecognizer.java:603)

at org.antlr.runtime.BaseRecognizer.match(BaseRecognizer.java:115)

at org.apache.uima.ruta.parser.RutaParser.file_input(RutaParser.java:680)

at org.apache.uima.ruta.engine.RutaEngine.loadScript(RutaEngine.java:1058)

at org.apache.uima.ruta.engine.RutaEngine.initializeScript(
RutaEngine.java:743)

...

(Continue reading)

Marshall Schor | 16 Jul 17:57 2015

Travel funding for ApacheCon EU Budapest - need to act today!

From the Apache Travel assistance committee:

HI All,

This is a reminder that currently applications are open for Travel Assistance to
go to ApacheCon EU Budapest 
this coming September/October.

Applications close tomorrow night so if you have not applied yet and intend to
do so, please act now!

For those that have submitted talks for this event and have not heard back as to
whether or not they will be 
accepted or not; and you intend to apply for assistance based on getting your
talks accepted — please DO 
apply for assistance now anyway, should your talk not be accepted, your
assistance application can be 
cancelled.

See apache.org/travel <http://apache.org/travel> for more info. 
See https://cwiki.apache.org/confluence/display/TAC/Application+Criteria for
more about the process.

Thanks and hope to see you all in Budapest!

Gav… (On behalf of the Travel Assistance Committee)

Gmane