|
|
Brian Adams 2010-11-11, 21:43
Doing a NOT matches of a pattern?
Can you just do a FILTER A BY NOT (matches 'pattern');
Or NOT matches 'pattern';
I have a list of bad words I DO NOT want to match and I am unsure how to do this with the few hundred words I have.
Sal Uryasev 2010-11-11, 21:47
You can do this pretty easily with python or perl streaming if you can't figure out a way in Pig.
On Nov 11, 2010, at 1:43 PM, Brian Adams wrote:
> Doing a NOT matches of a pattern? > > Can you just do a FILTER A BY NOT (matches 'pattern'); > > Or NOT matches 'pattern'; > > I have a list of bad words I DO NOT want to match and I am unsure how to > do this with the few hundred words I have.
Brian Adams 2010-11-11, 21:51
Can't say I have tried any python streaming or such.
I'm pretty newbish in that regard. -----Original Message----- From: Sal Uryasev [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 11, 2010 4:48 PM To: <[EMAIL PROTECTED]> Subject: Re: NOT MATCHES
You can do this pretty easily with python or perl streaming if you can't figure out a way in Pig.
On Nov 11, 2010, at 1:43 PM, Brian Adams wrote:
> Doing a NOT matches of a pattern? > > Can you just do a FILTER A BY NOT (matches 'pattern'); > > Or NOT matches 'pattern'; > > I have a list of bad words I DO NOT want to match and I am unsure how > to do this with the few hundred words I have.
Thejas M Nair 2010-11-11, 21:52
B = FILTER A BY NOT(field_foo matches 'test'); -Thejas On 11/11/10 1:43 PM, "Brian Adams" <[EMAIL PROTECTED]> wrote:
Doing a NOT matches of a pattern?
Can you just do a FILTER A BY NOT (matches 'pattern');
Or NOT matches 'pattern';
I have a list of bad words I DO NOT want to match and I am unsure how to do this with the few hundred words I have.
Brian Adams 2010-11-11, 21:59
Is there a pig version required for this? My understanding was that this did NOT work ?
From: Thejas M Nair [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 11, 2010 4:53 PM To: [EMAIL PROTECTED]; Brian Adams Subject: Re: NOT MATCHES
B = FILTER A BY NOT(field_foo matches 'test'); -Thejas On 11/11/10 1:43 PM, "Brian Adams" <[EMAIL PROTECTED]> wrote:
Doing a NOT matches of a pattern?
Can you just do a FILTER A BY NOT (matches 'pattern');
Or NOT matches 'pattern';
I have a list of bad words I DO NOT want to match and I am unsure how to do this with the few hundred words I have.
Thejas M Nair 2010-11-11, 22:14
This will work with almost any version. If it doesn't work for you, please let us know.
-Thejas On 11/11/10 1:59 PM, "Brian Adams" <[EMAIL PROTECTED]> wrote:
> Is there a pig version required for this? My understanding was that this did > NOT work ? > > > From: Thejas M Nair [mailto:[EMAIL PROTECTED]] > Sent: Thursday, November 11, 2010 4:53 PM > To: [EMAIL PROTECTED]; Brian Adams > Subject: Re: NOT MATCHES > > B = FILTER A BY NOT(field_foo matches 'test'); > -Thejas > > > On 11/11/10 1:43 PM, "Brian Adams" <[EMAIL PROTECTED]> wrote: > Doing a NOT matches of a pattern? > > Can you just do a FILTER A BY NOT (matches 'pattern'); > > Or NOT matches 'pattern'; > > I have a list of bad words I DO NOT want to match and I am unsure how to > do this with the few hundred words I have. > >
|
|
All projects made searchable here are trademarks of the Apache Software Foundation.
Service operated by
Sematext