You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@uima.apache.org by Ahmed Abdeen Hamed <ah...@gmail.com> on 2009/10/08 23:04:26 UTC

DocumentAnalyzer command line

Hello,
I am trying to create a command line version of the
org.apache.uima.tools.docanalyzer.DocumentAnalyzer. So, I am utilizing
the UIMA source code . However, the version that I just created is not
returning the results yet terminates without errors. I tried to debug
it but can't see what is wrong. I used the same parameters with the
GUI version but it is working fine. I just can't get it to work from
the command line.

I am attaching my Java class so perhaps someone can see what is wrong with it.

Thanks in advance!
Ahmed

Re: DocumentAnalyzer command line

Posted by Ahmed Abdeen Hamed <ah...@gmail.com>.
Thanks Marshall. No I didn't get anything in the output directory.
However, i figured out a different path and I used the XmiCasConsumer
class that I needed independently.
Thanks very much!
Ahmed

On Wed, Oct 28, 2009 at 1:22 PM, Marshall Schor <ms...@schor.com> wrote:
>
>
> Ahmed Abdeen Hamed wrote:
>> Hi Marshal,
>> Thank you for pointing out the other resources. I am interested in
>> RunAE CPE because it is very similar to what I need in my application.
>> I just tried to run it, but didn't print anything to the output
>> directory. Here are my args that I am passing to Eclipse argument tab:
>>
>> ${file_prompt:/Users/ahamed/Projects/workspace/ontotator-model-plugin/src/onto/resources/descriptors/analysis_engine/aggregate/USER_ASSEMBLED_AGGREGATE_AE.xml}
>> ${folder_prompt:/Users/ahamed/DLink}
>> ${folder_prompt:/Users/ahamed/ontotatorOutput}
>>
>> When I get promoted, I select the AE and the directories but nothing
>> is printed on the screen nor the console. Any idea how to get it to
>> work?
>>
> From my reading of the comments for the RunAE class, it says it puts it
> output into the directory you specify as the output (which I think is
> the 3rd parameter  /Users/ahamed/ontotatorOutput).  Did anything get
> written there?
>
> -Marshall
>> Thanks very much,
>> Ahmed
>>
>>
>>
>> On Wed, Oct 14, 2009 at 2:09 PM, Marshall Schor <ms...@schor.com> wrote:
>>
>>> Ahmed Abdeen Hamed wrote:
>>>
>>>> Hi Marshall,
>>>> I am trying to implement the exact GUI version of the DocumentAnalyzer
>>>> but to have it work from the commandline. Therefore, I removed all the
>>>> visual components(SWT/SWING) from the source. It is just not working.
>>>> If you guys have a version that I can use from the commandline that
>>>> does exactly what the DocumentAnalyzer is doing, that will be most
>>>> appreciated.
>>>>
>>>>
>>> I don't think we have something which does *exactly* what the
>>> DocumentAnalyzer is doing.  However please look at the examples in the
>>> examples part of UIMA.  There are two in the package
>>> org.apache.uima.examples, "ExampleApplication" and "RunAE".  They both
>>> do about the same thing, but the ExampleApplication runs an analysis
>>> engine, while the RunAE runs a Collection Processing Engine.   See the
>>> comments at the top for more info.
>>>
>>> -Marshall
>>>
>>>> I sent a link to the current source file in a email.
>>>> Thanks,
>>>> Ahmed
>>>>
>>>>
>>>>
>>>> On Tue, Oct 13, 2009 at 1:22 PM, Marshall Schor <ms...@schor.com> wrote:
>>>>
>>>>
>>>>> Ahmed Abdeen Hamed wrote:
>>>>>
>>>>>
>>>>>> Hello,
>>>>>> I am trying to create a command line version of the
>>>>>> org.apache.uima.tools.docanalyzer.DocumentAnalyzer. So, I am utilizing
>>>>>> the UIMA source code . However, the version that I just created is not
>>>>>> returning the results
>>>>>>
>>>>>>
>>>>> The results typically end up in a CAS.  Are you looking in the CAS for
>>>>> them or something else?
>>>>>
>>>>>
>>>>>> yet terminates without errors. I tried to debug
>>>>>> it but can't see what is wrong. I used the same parameters with the
>>>>>> GUI version but it is working fine. I just can't get it to work from
>>>>>> the command line.
>>>>>>
>>>>>> I am attaching my Java class so perhaps someone can see what is wrong with it.
>>>>>>
>>>>>>
>>>>>>
>>>>> Attachments are not possible on this list.  Can you put your attachment
>>>>> on some server and post the url to it?
>>>>>
>>>>> -Marshall
>>>>>
>>>>>
>>>>>> Thanks in advance!
>>>>>> Ahmed
>>>>>>
>>>>>>
>>>>>>
>>>>
>>>>
>>
>>
>>
>

Re: DocumentAnalyzer command line

Posted by Marshall Schor <ms...@schor.com>.

Ahmed Abdeen Hamed wrote:
> Hi Marshal,
> Thank you for pointing out the other resources. I am interested in
> RunAE CPE because it is very similar to what I need in my application.
> I just tried to run it, but didn't print anything to the output
> directory. Here are my args that I am passing to Eclipse argument tab:
>
> ${file_prompt:/Users/ahamed/Projects/workspace/ontotator-model-plugin/src/onto/resources/descriptors/analysis_engine/aggregate/USER_ASSEMBLED_AGGREGATE_AE.xml}
> ${folder_prompt:/Users/ahamed/DLink}
> ${folder_prompt:/Users/ahamed/ontotatorOutput}
>
> When I get promoted, I select the AE and the directories but nothing
> is printed on the screen nor the console. Any idea how to get it to
> work?
>   
>From my reading of the comments for the RunAE class, it says it puts it
output into the directory you specify as the output (which I think is
the 3rd parameter  /Users/ahamed/ontotatorOutput).  Did anything get
written there?

-Marshall
> Thanks very much,
> Ahmed
>
>
>
> On Wed, Oct 14, 2009 at 2:09 PM, Marshall Schor <ms...@schor.com> wrote:
>   
>> Ahmed Abdeen Hamed wrote:
>>     
>>> Hi Marshall,
>>> I am trying to implement the exact GUI version of the DocumentAnalyzer
>>> but to have it work from the commandline. Therefore, I removed all the
>>> visual components(SWT/SWING) from the source. It is just not working.
>>> If you guys have a version that I can use from the commandline that
>>> does exactly what the DocumentAnalyzer is doing, that will be most
>>> appreciated.
>>>
>>>       
>> I don't think we have something which does *exactly* what the
>> DocumentAnalyzer is doing.  However please look at the examples in the
>> examples part of UIMA.  There are two in the package
>> org.apache.uima.examples, "ExampleApplication" and "RunAE".  They both
>> do about the same thing, but the ExampleApplication runs an analysis
>> engine, while the RunAE runs a Collection Processing Engine.   See the
>> comments at the top for more info.
>>
>> -Marshall
>>     
>>> I sent a link to the current source file in a email.
>>> Thanks,
>>> Ahmed
>>>
>>>
>>>
>>> On Tue, Oct 13, 2009 at 1:22 PM, Marshall Schor <ms...@schor.com> wrote:
>>>
>>>       
>>>> Ahmed Abdeen Hamed wrote:
>>>>
>>>>         
>>>>> Hello,
>>>>> I am trying to create a command line version of the
>>>>> org.apache.uima.tools.docanalyzer.DocumentAnalyzer. So, I am utilizing
>>>>> the UIMA source code . However, the version that I just created is not
>>>>> returning the results
>>>>>
>>>>>           
>>>> The results typically end up in a CAS.  Are you looking in the CAS for
>>>> them or something else?
>>>>
>>>>         
>>>>> yet terminates without errors. I tried to debug
>>>>> it but can't see what is wrong. I used the same parameters with the
>>>>> GUI version but it is working fine. I just can't get it to work from
>>>>> the command line.
>>>>>
>>>>> I am attaching my Java class so perhaps someone can see what is wrong with it.
>>>>>
>>>>>
>>>>>           
>>>> Attachments are not possible on this list.  Can you put your attachment
>>>> on some server and post the url to it?
>>>>
>>>> -Marshall
>>>>
>>>>         
>>>>> Thanks in advance!
>>>>> Ahmed
>>>>>
>>>>>
>>>>>           
>>>
>>>       
>
>
>   

Re: DocumentAnalyzer command line

Posted by Ahmed Abdeen Hamed <ah...@gmail.com>.
Hi Marshal,
Thank you for pointing out the other resources. I am interested in
RunAE CPE because it is very similar to what I need in my application.
I just tried to run it, but didn't print anything to the output
directory. Here are my args that I am passing to Eclipse argument tab:

${file_prompt:/Users/ahamed/Projects/workspace/ontotator-model-plugin/src/onto/resources/descriptors/analysis_engine/aggregate/USER_ASSEMBLED_AGGREGATE_AE.xml}
${folder_prompt:/Users/ahamed/DLink}
${folder_prompt:/Users/ahamed/ontotatorOutput}

When I get promoted, I select the AE and the directories but nothing
is printed on the screen nor the console. Any idea how to get it to
work?
Thanks very much,
Ahmed



On Wed, Oct 14, 2009 at 2:09 PM, Marshall Schor <ms...@schor.com> wrote:
>
>
> Ahmed Abdeen Hamed wrote:
>> Hi Marshall,
>> I am trying to implement the exact GUI version of the DocumentAnalyzer
>> but to have it work from the commandline. Therefore, I removed all the
>> visual components(SWT/SWING) from the source. It is just not working.
>> If you guys have a version that I can use from the commandline that
>> does exactly what the DocumentAnalyzer is doing, that will be most
>> appreciated.
>>
> I don't think we have something which does *exactly* what the
> DocumentAnalyzer is doing.  However please look at the examples in the
> examples part of UIMA.  There are two in the package
> org.apache.uima.examples, "ExampleApplication" and "RunAE".  They both
> do about the same thing, but the ExampleApplication runs an analysis
> engine, while the RunAE runs a Collection Processing Engine.   See the
> comments at the top for more info.
>
> -Marshall
>> I sent a link to the current source file in a email.
>> Thanks,
>> Ahmed
>>
>>
>>
>> On Tue, Oct 13, 2009 at 1:22 PM, Marshall Schor <ms...@schor.com> wrote:
>>
>>> Ahmed Abdeen Hamed wrote:
>>>
>>>> Hello,
>>>> I am trying to create a command line version of the
>>>> org.apache.uima.tools.docanalyzer.DocumentAnalyzer. So, I am utilizing
>>>> the UIMA source code . However, the version that I just created is not
>>>> returning the results
>>>>
>>> The results typically end up in a CAS.  Are you looking in the CAS for
>>> them or something else?
>>>
>>>> yet terminates without errors. I tried to debug
>>>> it but can't see what is wrong. I used the same parameters with the
>>>> GUI version but it is working fine. I just can't get it to work from
>>>> the command line.
>>>>
>>>> I am attaching my Java class so perhaps someone can see what is wrong with it.
>>>>
>>>>
>>> Attachments are not possible on this list.  Can you put your attachment
>>> on some server and post the url to it?
>>>
>>> -Marshall
>>>
>>>> Thanks in advance!
>>>> Ahmed
>>>>
>>>>
>>
>>
>>
>

Re: DocumentAnalyzer command line

Posted by Marshall Schor <ms...@schor.com>.

Ahmed Abdeen Hamed wrote:
> Hi Marshall,
> I am trying to implement the exact GUI version of the DocumentAnalyzer
> but to have it work from the commandline. Therefore, I removed all the
> visual components(SWT/SWING) from the source. It is just not working.
> If you guys have a version that I can use from the commandline that
> does exactly what the DocumentAnalyzer is doing, that will be most
> appreciated.
>   
I don't think we have something which does *exactly* what the
DocumentAnalyzer is doing.  However please look at the examples in the
examples part of UIMA.  There are two in the package
org.apache.uima.examples, "ExampleApplication" and "RunAE".  They both
do about the same thing, but the ExampleApplication runs an analysis
engine, while the RunAE runs a Collection Processing Engine.   See the
comments at the top for more info.

-Marshall
> I sent a link to the current source file in a email.
> Thanks,
> Ahmed
>
>
>
> On Tue, Oct 13, 2009 at 1:22 PM, Marshall Schor <ms...@schor.com> wrote:
>   
>> Ahmed Abdeen Hamed wrote:
>>     
>>> Hello,
>>> I am trying to create a command line version of the
>>> org.apache.uima.tools.docanalyzer.DocumentAnalyzer. So, I am utilizing
>>> the UIMA source code . However, the version that I just created is not
>>> returning the results
>>>       
>> The results typically end up in a CAS.  Are you looking in the CAS for
>> them or something else?
>>     
>>> yet terminates without errors. I tried to debug
>>> it but can't see what is wrong. I used the same parameters with the
>>> GUI version but it is working fine. I just can't get it to work from
>>> the command line.
>>>
>>> I am attaching my Java class so perhaps someone can see what is wrong with it.
>>>
>>>       
>> Attachments are not possible on this list.  Can you put your attachment
>> on some server and post the url to it?
>>
>> -Marshall
>>     
>>> Thanks in advance!
>>> Ahmed
>>>
>>>       
>
>
>   

Re: DocumentAnalyzer command line

Posted by Ahmed Abdeen Hamed <ah...@gmail.com>.
Hi Marshall,
I am trying to implement the exact GUI version of the DocumentAnalyzer
but to have it work from the commandline. Therefore, I removed all the
visual components(SWT/SWING) from the source. It is just not working.
If you guys have a version that I can use from the commandline that
does exactly what the DocumentAnalyzer is doing, that will be most
appreciated.

I sent a link to the current source file in a email.
Thanks,
Ahmed



On Tue, Oct 13, 2009 at 1:22 PM, Marshall Schor <ms...@schor.com> wrote:
> Ahmed Abdeen Hamed wrote:
>> Hello,
>> I am trying to create a command line version of the
>> org.apache.uima.tools.docanalyzer.DocumentAnalyzer. So, I am utilizing
>> the UIMA source code . However, the version that I just created is not
>> returning the results
> The results typically end up in a CAS.  Are you looking in the CAS for
> them or something else?
>> yet terminates without errors. I tried to debug
>> it but can't see what is wrong. I used the same parameters with the
>> GUI version but it is working fine. I just can't get it to work from
>> the command line.
>>
>> I am attaching my Java class so perhaps someone can see what is wrong with it.
>>
> Attachments are not possible on this list.  Can you put your attachment
> on some server and post the url to it?
>
> -Marshall
>> Thanks in advance!
>> Ahmed
>>
>

Re: DocumentAnalyzer command line

Posted by Marshall Schor <ms...@schor.com>.
Ahmed Abdeen Hamed wrote:
> Hello,
> I am trying to create a command line version of the
> org.apache.uima.tools.docanalyzer.DocumentAnalyzer. So, I am utilizing
> the UIMA source code . However, the version that I just created is not
> returning the results 
The results typically end up in a CAS.  Are you looking in the CAS for
them or something else?
> yet terminates without errors. I tried to debug
> it but can't see what is wrong. I used the same parameters with the
> GUI version but it is working fine. I just can't get it to work from
> the command line.
>
> I am attaching my Java class so perhaps someone can see what is wrong with it.
>   
Attachments are not possible on this list.  Can you put your attachment
on some server and post the url to it?

-Marshall
> Thanks in advance!
> Ahmed
>