You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@uima.apache.org by Mansour Al Akeel <ma...@gmail.com> on 2014/11/05 17:25:52 UTC
uimafit initialization
I am trying to follow the documentation to understand how to use
uimafit to initialize ctakes component.
>From the docs: http://uima.apache.org/d/uimafit-2.1.0/tools.uimafit.book.html#d5e65
AnalysisEngine tokenizer = createEngine(MyTokenizer.class);
AnalysisEngine tagger = createEngine(MyTagger.class);
runPipeline(jCas, tokenizer, tagger);
for(Token token : iterate(jCas, Token.class)){
System.out.println(token.getTag());
}
What classes has the methods "createEngine" and "runPipeline" in this context ?
I am trying to integrate Named Entity Recognition using UMLS and use
it in java code.
Any pointer is highly appreciated.
Thank you.
Re: uimafit initialization
Posted by Richard Eckart de Castilho <re...@apache.org>.
Well, that's the pre-Apache version of uimaFIT. Afaik ctakes recently upgraded (or at least planned to upgrade) to the Apache version.
Cheers,
-- Richard
On 05.11.2014, at 21:12, Mansour Al Akeel <ma...@gmail.com> wrote:
> Richard,
>
> Thank you a lot. I was using:
>
> org.uimafit.factory.AnalysisEngineFactory
>
> referenced by:
>
> <dependency>
> <groupId>org.apache.ctakes</groupId>
> <artifactId>ctakes-ne-contexts</artifactId>
> <version>3.2.0</version>
> </dependency>
>
> On Wed, Nov 5, 2014 at 2:46 PM, Richard Eckart de Castilho
> <re...@apache.org> wrote:
>> Hi,
>>
>> that would be
>>
>> import static org.apache.uima.fit.factory.AnalysisEngineFactory.createEngine;
>> import static org.apache.uima.fit.pipeline.SimplePipeline.runPipeline;
>>
>> Cheers,
>>
>> -- Richard
>>
>> On 05.11.2014, at 17:25, Mansour Al Akeel <ma...@gmail.com> wrote:
>>
>>> I am trying to follow the documentation to understand how to use
>>> uimafit to initialize ctakes component.
>>>
>>> From the docs: http://uima.apache.org/d/uimafit-2.1.0/tools.uimafit.book.html#d5e65
>>>
>>>
>>> AnalysisEngine tokenizer = createEngine(MyTokenizer.class);
>>>
>>> AnalysisEngine tagger = createEngine(MyTagger.class);
>>>
>>> runPipeline(jCas, tokenizer, tagger);
>>>
>>> for(Token token : iterate(jCas, Token.class)){
>>> System.out.println(token.getTag());
>>> }
>>>
>>>
>>> What classes has the methods "createEngine" and "runPipeline" in this context ?
>>>
>>> I am trying to integrate Named Entity Recognition using UMLS and use
>>> it in java code.
>>>
>>> Any pointer is highly appreciated.
>>>
>>> Thank you.
>>
Re: uimafit initialization
Posted by Mansour Al Akeel <ma...@gmail.com>.
Richard,
Thank you a lot. I was using:
org.uimafit.factory.AnalysisEngineFactory
referenced by:
<dependency>
<groupId>org.apache.ctakes</groupId>
<artifactId>ctakes-ne-contexts</artifactId>
<version>3.2.0</version>
</dependency>
On Wed, Nov 5, 2014 at 2:46 PM, Richard Eckart de Castilho
<re...@apache.org> wrote:
> Hi,
>
> that would be
>
> import static org.apache.uima.fit.factory.AnalysisEngineFactory.createEngine;
> import static org.apache.uima.fit.pipeline.SimplePipeline.runPipeline;
>
> Cheers,
>
> -- Richard
>
> On 05.11.2014, at 17:25, Mansour Al Akeel <ma...@gmail.com> wrote:
>
>> I am trying to follow the documentation to understand how to use
>> uimafit to initialize ctakes component.
>>
>> From the docs: http://uima.apache.org/d/uimafit-2.1.0/tools.uimafit.book.html#d5e65
>>
>>
>> AnalysisEngine tokenizer = createEngine(MyTokenizer.class);
>>
>> AnalysisEngine tagger = createEngine(MyTagger.class);
>>
>> runPipeline(jCas, tokenizer, tagger);
>>
>> for(Token token : iterate(jCas, Token.class)){
>> System.out.println(token.getTag());
>> }
>>
>>
>> What classes has the methods "createEngine" and "runPipeline" in this context ?
>>
>> I am trying to integrate Named Entity Recognition using UMLS and use
>> it in java code.
>>
>> Any pointer is highly appreciated.
>>
>> Thank you.
>
Re: uimafit initialization
Posted by Richard Eckart de Castilho <re...@apache.org>.
Hi,
that would be
import static org.apache.uima.fit.factory.AnalysisEngineFactory.createEngine;
import static org.apache.uima.fit.pipeline.SimplePipeline.runPipeline;
Cheers,
-- Richard
On 05.11.2014, at 17:25, Mansour Al Akeel <ma...@gmail.com> wrote:
> I am trying to follow the documentation to understand how to use
> uimafit to initialize ctakes component.
>
> From the docs: http://uima.apache.org/d/uimafit-2.1.0/tools.uimafit.book.html#d5e65
>
>
> AnalysisEngine tokenizer = createEngine(MyTokenizer.class);
>
> AnalysisEngine tagger = createEngine(MyTagger.class);
>
> runPipeline(jCas, tokenizer, tagger);
>
> for(Token token : iterate(jCas, Token.class)){
> System.out.println(token.getTag());
> }
>
>
> What classes has the methods "createEngine" and "runPipeline" in this context ?
>
> I am trying to integrate Named Entity Recognition using UMLS and use
> it in java code.
>
> Any pointer is highly appreciated.
>
> Thank you.