If you were Registered and logged in, you could reply and use other advanced thread options
|
Posted by Jack on December 4, 2008, 12:49 am
Hi there, just checking to see if anyone knows how to perform this
basic grammar function ? I searched CPAN and found nothing that was
able to in Perl..
Thank you,
Jack
|
|
Posted by Charlton Wilbur on December 4, 2008, 12:55 am
J> Hi there, just checking to see if anyone knows how to perform
J> this basic grammar function ? I searched CPAN and found nothing
J> that was able to in Perl..
That's because it's not a trivial problem.
Consider: "Time flies like an arrow. Fruit flies like a banana."
In the second sentence, what is the subject?
Charlton
--
Charlton Wilbur
cwilbur@chromatico.net
|
|
Posted by Jack on December 4, 2008, 1:07 am
> =A0 =A0 J> Hi there, just checking to see if anyone knows how to perform
> =A0 =A0 J> this basic grammar function ? =A0I searched CPAN and found nothing
> =A0 =A0 J> that was able to in Perl..
> That's because it's not a trivial problem.
> Consider: "Time flies like an arrow. =A0Fruit flies like a banana."
> In the second sentence, what is the subject?
> Charlton
> --
> Charlton Wilbur
> cwil...@chromatico.net
Thanks.. So my goal would be to capture what is the subject of the
sentence, Time, and Fruit, respectively. However you cant always take
the first noun that shows up as the subject for instance: "Despite
accusations, lawyers find a way to evade difficult situations"
Lawyers would be the subject of the sentence.. does that make sense ?
Essentially, identify the TOPIC/subject is what I want to do, for a
given sentence..
|
|
Posted by Jürgen Exner on December 4, 2008, 2:07 am
>> That's because it's not a trivial problem.
>> Consider: "Time flies like an arrow. Fruit flies like a banana."
>> In the second sentence, what is the subject?
>Thanks.. So my goal would be to capture what is the subject of the
>sentence, Time, and Fruit, respectively. However you cant always take
You just proved Charlton's point:
In the second sentence the subject is not "fruit" but "fruit flies"
Natural language parsing is a _very_ difficult subject.
jue
|
|
Posted by Charlton Wilbur on December 4, 2008, 9:58 am
>>> That's because it's not a trivial problem.
>>>
>>> Consider: "Time flies like an arrow. Fruit flies like a
>>> banana."
>>>
>>> In the second sentence, what is the subject?
>>
>> Thanks.. So my goal would be to capture what is the subject of
>> the sentence, Time, and Fruit, respectively. However you cant
>> always take
J> You just proved Charlton's point: In the second sentence the
J> subject is not "fruit" but "fruit flies"
And you just proved my actual point: Whether the subject is "fruit" or
"fruit flies" is indeterminate, and that's where the humor in the
statement comes from.
Charlton
--
Charlton Wilbur
cwilbur@chromatico.net
|
If you were Registered and logged in, you could reply and use other advanced thread options
Related Posts
Latest Posts
|
J> this basic grammar function ? I searched CPAN and found nothing
J> that was able to in Perl..