Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #28727 > unrolled thread

Artificial Intelligence with Java

Started by"Giovanni R." <informatica.cercola@gmail.com>
First post2014-06-14 01:26 -0700
Last post2014-06-22 21:20 -0500
Articles 20 — 10 participants

Back to article view | Back to comp.lang.java.programmer


Contents

  Artificial Intelligence with Java "Giovanni R." <informatica.cercola@gmail.com> - 2014-06-14 01:26 -0700
    Re: Artificial Intelligence with Java Josip Almasi <joe@vrspace.org> - 2014-06-14 13:41 +0200
    Re: Artificial Intelligence with Java Jeff Higgins <jeff@invalid.invalid> - 2014-06-14 16:15 -0400
      Re: Artificial Intelligence with Java Jeff Higgins <jeff@invalid.invalid> - 2014-06-14 20:08 -0400
        Re: Artificial Intelligence with Java Jeff Higgins <jeff@invalid.invalid> - 2014-06-14 20:35 -0400
      Re: Artificial Intelligence with Java Jeff Higgins <jeff@invalid.invalid> - 2014-06-14 21:06 -0400
    Re: Artificial Intelligence with Java Sarah Connor <s.connor@gmail.invalid> - 2014-06-15 02:31 +0000
      Re: Artificial Intelligence with Java Roedy Green <see_website@mindprod.com.invalid> - 2014-06-20 22:20 -0700
    Re: Artificial Intelligence with Java "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> - 2014-06-15 11:49 +0100
      Re: Artificial Intelligence with Java Jeff Higgins <jeff@invalid.invalid> - 2014-06-15 07:08 -0400
        Re: Artificial Intelligence with Java Jeff Higgins <jeff@invalid.invalid> - 2014-06-15 07:58 -0400
      Re: Artificial Intelligence with Java Eric Sosman <esosman@comcast-dot-net.invalid> - 2014-06-15 08:13 -0400
        Re: Artificial Intelligence with Java Jeff Higgins <jeff@invalid.invalid> - 2014-06-15 09:22 -0400
          Re: Artificial Intelligence with Java Jeff Higgins <jeff@invalid.invalid> - 2014-06-15 10:51 -0400
            Re: Artificial Intelligence with Java Martin Gregorie <martin@address-in-sig.invalid> - 2014-06-15 17:24 +0000
              Re: Artificial Intelligence with Java Jeff Higgins <jeff@invalid.invalid> - 2014-06-15 15:14 -0400
                Re: Artificial Intelligence with Java Jeff Higgins <jeff@invalid.invalid> - 2014-06-15 15:31 -0400
              Re: Artificial Intelligence with Java Andreas Leitgeb <avl@auth.logic.tuwien.ac.at> - 2014-06-16 17:26 +0000
      Re: Artificial Intelligence with Java Roedy Green <see_website@mindprod.com.invalid> - 2014-06-20 22:23 -0700
        Re: Artificial Intelligence with Java Joshua Cranmer 🐧 <Pidgeot18@verizon.invalid> - 2014-06-22 21:20 -0500

#28727 — Artificial Intelligence with Java

From"Giovanni R." <informatica.cercola@gmail.com>
Date2014-06-14 01:26 -0700
SubjectArtificial Intelligence with Java
Message-ID<21b372c0-200e-4587-9fa1-953c8a3d080d@googlegroups.com>
I'd like to create an application using Java where users give a phrase in input and the application says if it's a /negative/ or /positive/ phrase.

Where should I start?
Has AI already solved this kind of problems?

Thanks.

[toc] | [next] | [standalone]


#28728

FromJosip Almasi <joe@vrspace.org>
Date2014-06-14 13:41 +0200
Message-ID<lnhcdm$agr$1@gregory.bnet.hr>
In reply to#28727
On 06/14/2014 10:26 AM, Giovanni R. wrote:
>
> I'd like to create an application using Java where users give a phrase in input and the application says if it's a /negative/ or /positive/ phrase.
>
> Where should I start?

Here, I guess:
http://www.alicebot.org/downloads/programs.html

> Has AI already solved this kind of problems?

Responding to user input - yes;)
Analysing phrases - yes.
Recognizing negative/positive phrases - not to my knowledge.

Regards...

[toc] | [prev] | [next] | [standalone]


#28732

FromJeff Higgins <jeff@invalid.invalid>
Date2014-06-14 16:15 -0400
Message-ID<lniap3$ika$1@dont-email.me>
In reply to#28727
On 06/14/2014 04:26 AM, Giovanni R. wrote:
>
> I'd like to create an application using Java where users give a phrase in input and the application says if it's a /negative/ or /positive/ phrase.
>
> Where should I start?
> Has AI already solved this kind of problems?
>
> Thanks.
>
A priori polarity shouldn't be too hard.
Contextual polarity maybe harder.
Google Sentiment+Analysis.
An extended example:
<http://alias-i.com/lingpipe/demos/tutorial/sentiment/read-me.html>

[toc] | [prev] | [next] | [standalone]


#28737

FromJeff Higgins <jeff@invalid.invalid>
Date2014-06-14 20:08 -0400
Message-ID<lnioeu$beb$1@dont-email.me>
In reply to#28732
On 06/14/2014 04:15 PM, Jeff Higgins wrote:
> On 06/14/2014 04:26 AM, Giovanni R. wrote:
>>
>> I'd like to create an application using Java where users give a phrase
>> in input and the application says if it's a /negative/ or /positive/
>> phrase.
>>
>> Where should I start?
>> Has AI already solved this kind of problems?
>>
>> Thanks.
>>
> A priori polarity shouldn't be too hard.
> Contextual polarity maybe harder.
> Google Sentiment+Analysis.
> An extended example:
> <http://alias-i.com/lingpipe/demos/tutorial/sentiment/read-me.html>
>
Online sentiment detector with Java library.
<http://sentistrength.wlv.ac.uk/>

[toc] | [prev] | [next] | [standalone]


#28738

FromJeff Higgins <jeff@invalid.invalid>
Date2014-06-14 20:35 -0400
Message-ID<lniq0n$j86$1@dont-email.me>
In reply to#28737
On 06/14/2014 08:08 PM, Jeff Higgins wrote:
> On 06/14/2014 04:15 PM, Jeff Higgins wrote:
>> On 06/14/2014 04:26 AM, Giovanni R. wrote:
>>>
>>> I'd like to create an application using Java where users give a phrase
>>> in input and the application says if it's a /negative/ or /positive/
>>> phrase.
>>>
>>> Where should I start?
>>> Has AI already solved this kind of problems?
>>>
>>> Thanks.
>>>
>> A priori polarity shouldn't be too hard.
>> Contextual polarity maybe harder.
>> Google Sentiment+Analysis.
>> An extended example:
>> <http://alias-i.com/lingpipe/demos/tutorial/sentiment/read-me.html>
>>
> Online sentiment detector with Java library.
> <http://sentistrength.wlv.ac.uk/>
>
The text 'It has been real and it has been fun but it has not been real 
fun.'
has positive strength 2 and negative strength -1

[toc] | [prev] | [next] | [standalone]


#28740

FromJeff Higgins <jeff@invalid.invalid>
Date2014-06-14 21:06 -0400
Message-ID<lnirr6$udm$1@dont-email.me>
In reply to#28732
On 06/14/2014 04:15 PM, Jeff Higgins wrote:
> On 06/14/2014 04:26 AM, Giovanni R. wrote:
>>
>> I'd like to create an application using Java where users give a phrase
>> in input and the application says if it's a /negative/ or /positive/
>> phrase.
>>
>> Where should I start?
>> Has AI already solved this kind of problems?
>>
>> Thanks.
>>
> A priori polarity shouldn't be too hard.
> Contextual polarity maybe harder.
> Google Sentiment+Analysis.
> An extended example:
> <http://alias-i.com/lingpipe/demos/tutorial/sentiment/read-me.html>
>
Memento for me. "Recognizing Contextual Polarity in Phrase-Level 
Sentiment Analysis
"
<http://www.cs.pitt.edu/~wiebe/pubs/papers/emnlp05polarity.pdf>

[toc] | [prev] | [next] | [standalone]


#28742

FromSarah Connor <s.connor@gmail.invalid>
Date2014-06-15 02:31 +0000
Message-ID<lnj0hd$14u$1@speranza.aioe.org>
In reply to#28727
On Sat, 14 Jun 2014 01:26:55 -0700, Giovanni R. wrote:

> I'd like to create an application using Java where users give a phrase
> in input and the application says if it's a /negative/ or /positive/
> phrase.
> 
> Where should I start?
> Has AI already solved this kind of problems?

Consider that the same phrase, "good job!", can mean it was a good job or 
it was a terrible job depending on the context. (Ex.: In Star Wars Attack 
of the Clones when Anakin and Padme have been captured and are chained up 
next to Obi-Wan, he asks what they're doing here. Anakin says they came 
to rescue him. Cue "good job!".)

The day AI can reliably tell when "good job!" is positive or negative is 
the day we can all stop worrying about keeping *our* jobs -- one way or 
another.

[toc] | [prev] | [next] | [standalone]


#28803

FromRoedy Green <see_website@mindprod.com.invalid>
Date2014-06-20 22:20 -0700
Message-ID<sd5aq9pts61dosc27l91r23s3ktj1ef07p@4ax.com>
In reply to#28742
On Sun, 15 Jun 2014 02:31:09 +0000 (UTC), Sarah Connor
<s.connor@gmail.invalid> wrote, quoted or indirectly quoted someone
who said :

>
>The day AI can reliably tell when "good job!" is positive or negative is 
>the day we can all stop worrying about keeping *our* jobs -- one way or 
>another.

The word "bad" can mean either good or bad. Wicked can me either
"clever" or "evil". Various drugs have nicknames of ordinary household
items.

I wonder if this is an unconscious attempt to foil automated phone
snoops.
-- 
Roedy Green Canadian Mind Products http://mindprod.com
Why program by hand in 5 days what you can spend
2 to 5 years of your life automating.
~ Terence Parr 1964-08-17

[toc] | [prev] | [next] | [standalone]


#28746

From"Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org>
Date2014-06-15 11:49 +0100
Message-ID<KrWdnY_d_t3W5gDOnZ2dnUVZ8iudnZ2d@bt.com>
In reply to#28727
Giovanni R. wrote:

> I'd like to create an application using Java where users give a phrase in
> input and the application says if it's a /negative/ or /positive/ phrase.
>
> Where should I start?

The phrase you want to feed into a search engine is "natural language 
processing".

> Has AI already solved this kind of problems?

Probably (or to put it another way -- I doubt whether AI is necessary): 
depending on what you mean by negative or positive: for instance is "<some 
name> is a <some insult>" negative (because of the insult) or positive (because 
it makes a positive statement) ?

As an exercise, consider what part of the problem /wouldn't/ be solved by 
testing whether the phrase contained the word "not" (including contractions).

    -- chris 

[toc] | [prev] | [next] | [standalone]


#28748

FromJeff Higgins <jeff@invalid.invalid>
Date2014-06-15 07:08 -0400
Message-ID<lnjv3j$c8e$1@dont-email.me>
In reply to#28746
On 06/15/2014 06:49 AM, Chris Uppal wrote:
> Giovanni R. wrote:
>
>> I'd like to create an application using Java where users give a phrase in
>> input and the application says if it's a /negative/ or /positive/ phrase.
>>
>> Where should I start?
>
> The phrase you want to feed into a search engine is "natural language
> processing".
>
>> Has AI already solved this kind of problems?
>
> Probably (or to put it another way -- I doubt whether AI is necessary):
> depending on what you mean by negative or positive: for instance is "<some
> name> is a <some insult>" negative (because of the insult) or positive (because
> it makes a positive statement) ?
>
> As an exercise, consider what part of the problem /wouldn't/ be solved by
> testing whether the phrase contained the word "not" (including contractions).
>
Memento for me. "Contextual Valence Shifters"
<http://aaaipress.org/Papers/Symposia/Spring/2004/SS-04-07/SS04-07-020.pdf>

[toc] | [prev] | [next] | [standalone]


#28749

FromJeff Higgins <jeff@invalid.invalid>
Date2014-06-15 07:58 -0400
Message-ID<lnk21s$tgj$1@dont-email.me>
In reply to#28748
On 06/15/2014 07:08 AM, Jeff Higgins wrote:

> Memento for me. "Contextual Valence Shifters"
> <http://aaaipress.org/Papers/Symposia/Spring/2004/SS-04-07/SS04-07-020.pdf>

"Learning Extraction Patterns for Subjective Expressions"
<http://www.cs.utah.edu/~riloff/pdfs/emnlp03.pdf>

[toc] | [prev] | [next] | [standalone]


#28750

FromEric Sosman <esosman@comcast-dot-net.invalid>
Date2014-06-15 08:13 -0400
Message-ID<lnk2kq$1hl$1@dont-email.me>
In reply to#28746
On 6/15/2014 6:49 AM, Chris Uppal wrote:
> [...]
> As an exercise, consider what part of the problem /wouldn't/ be solved by
> testing whether the phrase contained the word "not" (including contractions).

     Ain't nuthin' no better nor whut he said.

-- 
Eric Sosman
esosman@comcast-dot-net.invalid

[toc] | [prev] | [next] | [standalone]


#28751

FromJeff Higgins <jeff@invalid.invalid>
Date2014-06-15 09:22 -0400
Message-ID<lnk6vh$v09$1@dont-email.me>
In reply to#28750
On 06/15/2014 08:13 AM, Eric Sosman wrote:
>      Ain't nuthin' no better nor whut he said.

Aspects of English Negation
Yoko Iyeiri
John Benjamins Publishing, 2005

When Voices Clash: A Study in Literary Pragmatics
Jacob Mey
Walter de Gruyter, 1999

[toc] | [prev] | [next] | [standalone]


#28752

FromJeff Higgins <jeff@invalid.invalid>
Date2014-06-15 10:51 -0400
Message-ID<lnkc6r$3ea$1@dont-email.me>
In reply to#28751
I ain't gwine to tell no mo' 'cause I ain't to make
statement and testify 'bout sumpin' I ain' know about.

[toc] | [prev] | [next] | [standalone]


#28753

FromMartin Gregorie <martin@address-in-sig.invalid>
Date2014-06-15 17:24 +0000
Message-ID<lnkkt6$vnm$1@dont-email.me>
In reply to#28752
On Sun, 15 Jun 2014 10:51:37 -0400, Jeff Higgins wrote:

> I ain't gwine to tell no mo' 'cause I ain't to make statement and
> testify 'bout sumpin' I ain' know about.

Ain't got no cigarettes.


-- 
martin@   | Martin Gregorie
gregorie. | Essex, UK
org       |

[toc] | [prev] | [next] | [standalone]


#28754

FromJeff Higgins <jeff@invalid.invalid>
Date2014-06-15 15:14 -0400
Message-ID<lnkrk2$hnm$1@dont-email.me>
In reply to#28753
On 06/15/2014 01:24 PM, Martin Gregorie wrote:
> On Sun, 15 Jun 2014 10:51:37 -0400, Jeff Higgins wrote:
>
>> I ain't gwine to tell no mo' 'cause I ain't to make statement and
>> testify 'bout sumpin' I ain' know about.
>
> Ain't got no cigarettes.
>
>
We don't need no education.

[toc] | [prev] | [next] | [standalone]


#28755

FromJeff Higgins <jeff@invalid.invalid>
Date2014-06-15 15:31 -0400
Message-ID<lnksjd$ofd$1@dont-email.me>
In reply to#28754
On 06/15/2014 03:14 PM, Jeff Higgins wrote:
> On 06/15/2014 01:24 PM, Martin Gregorie wrote:
>> On Sun, 15 Jun 2014 10:51:37 -0400, Jeff Higgins wrote:
>>
>>> I ain't gwine to tell no mo' 'cause I ain't to make statement and
>>> testify 'bout sumpin' I ain' know about.
>>
>> Ain't got no cigarettes.
>>
>>
> We don't need no education.
>

But back to the original topic.

"The Polarity Items Bibliography"
<http://www.english-linguistics.de/sfb441/a5/pib/XML2HTML/list.html>

No reply back yet, but maybe the OP has
discovered something about web search engines.

[toc] | [prev] | [next] | [standalone]


#28758

FromAndreas Leitgeb <avl@auth.logic.tuwien.ac.at>
Date2014-06-16 17:26 +0000
Message-ID<slrnlpua5r.bi9.avl@login.logic.tuwien.ac.at>
In reply to#28753
Martin Gregorie <martin@address-in-sig.invalid> wrote:
> On Sun, 15 Jun 2014 10:51:37 -0400, Jeff Higgins wrote:
>> I ain't gwine to tell no mo' 'cause I ain't to make statement and
>> testify 'bout sumpin' I ain' know about.
> Ain't got no cigarettes.

Definitely positive (for your health) ;-)

[toc] | [prev] | [next] | [standalone]


#28804

FromRoedy Green <see_website@mindprod.com.invalid>
Date2014-06-20 22:23 -0700
Message-ID<dh5aq9lbkj1ppjecp2fnpec4indi02n24b@4ax.com>
In reply to#28746
On Sun, 15 Jun 2014 11:49:12 +0100, "Chris Uppal"
<chris.uppal@metagnostic.REMOVE-THIS.org> wrote, quoted or indirectly
quoted someone who said :

>Probably (or to put it another way -- I doubt whether AI is necessary): 
>depending on what you mean by negative or positive: for instance is "<some 
>name> is a <some insult>" negative (because of the insult) or positive (because 
>it makes a positive statement) ?

I heard a voice the other day coming from another room.  I could not
make out what it was saying, but I knew it was Al Gore.  I was right.

Ditto, I can tell you if a voice is angry, horny, happy etc. even when
I cannot make out the words.

I suspect you will do much better analysing the raw voice rather than
a transcript.  All the time on the net people mistake jokes, irony etc
because of the lack of timbre cues.
-- 
Roedy Green Canadian Mind Products http://mindprod.com
Why program by hand in 5 days what you can spend
2 to 5 years of your life automating.
~ Terence Parr 1964-08-17

[toc] | [prev] | [next] | [standalone]


#28819

FromJoshua Cranmer 🐧 <Pidgeot18@verizon.invalid>
Date2014-06-22 21:20 -0500
Message-ID<lo82ss$ck9$1@dont-email.me>
In reply to#28804
On 6/21/2014 12:23 AM, Roedy Green wrote:
> I suspect you will do much better analysing the raw voice rather than
> a transcript.  All the time on the net people mistake jokes, irony etc
> because of the lack of timbre cues.

I doubt it. Transcripts have the advantage that the individual semantic 
units are unambiguous, whereas aural processing needs to identify and 
translate phonemes from a fairly noisy signal and has to cover a much 
broader set of regional varieties in aural media than in written media.

-- 
Beware of bugs in the above code; I have only proved it correct, not 
tried it. -- Donald E. Knuth

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.programmer


csiph-web