You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ctakes.apache.org by Melvin Ma <ma...@gmail.com> on 2017/10/06 22:28:17 UTC
using ctakes in an app -
This is more of a newbie question but I have not found a good document
about it. Please help.
As of now, my requirements appear to be :
1> use existing ctakes pipelines;
2> maybe develop one or two on my own
3> provide services (like a web server)
To do that, it seems I could do the following:
1> java project setup with maven;
using ctakes APIs.
2> In case I need to develop my own pipeline, I will write a UIMA CAS
thingy
3> I will create a piper file and then run the piper runner ..
In addition, I will add resources files (dictionary) to the classpath.
That seems it. Is that right? Thanks and have a nice weekend.
Melvin
Re: using ctakes in an app -
Posted by Melvin Ma <ma...@gmail.com>.
Yes! Thanks. Melvin
> On Oct 7, 2017, at 08:18, Alexandru Zbarcea <al...@apache.org> wrote:
>
> Hi Melvin,
>
> If I get your question right, a answer from the mailing list addresses your question (more: https://mail-archives.apache.org/mod_mbox/ctakes-user/201709.mbox/%3CCAGycqjwU3LVwdLE4fxMXDAnSkAjcFZdCMb1Z=tT7npKaNMMi3Q@mail.gmail.com%3E)
>
> ---------- Forwarded message ----------
> From: Alexandru Zbarcea <zb...@gmail.com>
> Date: Fri, Sep 29, 2017 at 5:41 PM
> Subject: Re: Loading ctakes-temporal
> To: user@ctakes.apache.org
>
>
> Hi Jonas,
>
> I think the following will help you (already proposed as PR to https://github.com/healthnlp/examples): https://github.com/azbarcea/ctakes-examples/tree/fix-temporal-execution
>
> As I described in the README.md:
>
> git clone https://github.com/azbarcea/ctakes-examples.git
> cd ctakes-examples
> git checkout fix-temporal-execution
>
> cd ctakes-temporal-demo
> mvn clean install
> export ctakes_umlsuser='<your-username>'
> export ctakes_umlspw='<your-password>'
> ./configure.sh
> MAVEN_OPTS="-Xmx4096m -Xms3072m -Xss128M -XX:+CMSClassUnloadingEnabled -XX:-UseGCOverheadLimit" mvn jetty:run
> This would lunch jetty on 8080, so visit:
> http://localhost:8080/
> and you should see something like:
>
>
>
>
>
> All settings are in target folder, so no need to modify source or anything else.
>
> Hope it helps,
> Alex
>
> Alex
>
>> On Fri, Oct 6, 2017 at 6:28 PM, Melvin Ma <ma...@gmail.com> wrote:
>> This is more of a newbie question but I have not found a good document
>> about it. Please help.
>>
>> As of now, my requirements appear to be :
>> 1> use existing ctakes pipelines;
>> 2> maybe develop one or two on my own
>> 3> provide services (like a web server)
>>
>> To do that, it seems I could do the following:
>> 1> java project setup with maven;
>> using ctakes APIs.
>> 2> In case I need to develop my own pipeline, I will write a UIMA CAS
>> thingy
>> 3> I will create a piper file and then run the piper runner ..
>>
>> In addition, I will add resources files (dictionary) to the classpath.
>>
>> That seems it. Is that right? Thanks and have a nice weekend.
>>
>> Melvin
>
Re: using ctakes in an app -
Posted by Alexandru Zbarcea <al...@apache.org>.
Hi Melvin,
If I get your question right, a answer from the mailing list addresses your
question (more:
https://mail-archives.apache.org/mod_mbox/ctakes-user/201709.mbox/%3CCAGycqjwU3LVwdLE4fxMXDAnSkAjcFZdCMb1Z=tT7npKaNMMi3Q@mail.gmail.com%3E
)
---------- Forwarded message ----------
From: Alexandru Zbarcea <zb...@gmail.com>
Date: Fri, Sep 29, 2017 at 5:41 PM
Subject: Re: Loading ctakes-temporal
To: user@ctakes.apache.org
Hi Jonas,
I think the following will help you (already proposed as PR to
https://github.com/healthnlp/examples): https://github.com/azbarcea/ctakes-
examples/tree/fix-temporal-execution
As I described in the README.md:
git clone https://github.com/azbarcea/ctakes-examples.git
cd ctakes-examples
git checkout fix-temporal-execution
cd ctakes-temporal-demo
mvn clean install
export ctakes_umlsuser='<your-username>'
export ctakes_umlspw='<your-password>'
./configure.sh
MAVEN_OPTS="-Xmx4096m -Xms3072m -Xss128M -XX:+CMSClassUnloadingEnabled
-XX:-UseGCOverheadLimit" mvn jetty:run
This would lunch jetty on 8080, so visit:
http://localhost:8080/
and you should see something like:
[image: Inline image 1]
All settings are in target folder, so no need to modify source or anything
else.
Hope it helps,
Alex
Alex
On Fri, Oct 6, 2017 at 6:28 PM, Melvin Ma <ma...@gmail.com> wrote:
> This is more of a newbie question but I have not found a good document
> about it. Please help.
>
> As of now, my requirements appear to be :
> 1> use existing ctakes pipelines;
> 2> maybe develop one or two on my own
> 3> provide services (like a web server)
>
> To do that, it seems I could do the following:
> 1> java project setup with maven;
> using ctakes APIs.
> 2> In case I need to develop my own pipeline, I will write a UIMA CAS
> thingy
> 3> I will create a piper file and then run the piper runner ..
>
> In addition, I will add resources files (dictionary) to the classpath.
>
> That seems it. Is that right? Thanks and have a nice weekend.
>
> Melvin
>