Re: Checking if a list of names appears in a body of text.
- From: "colin" <colin.rowe1@xxxxxxxxxxxxxxxxxx>
- Date: Sat, 03 May 2008 09:15:07 GMT
have you considered a decision tree built from your list of company names?
Colin =^.^=
"Brent" <writebrent@xxxxxxxxx> wrote in message
news:412800b8-0dde-4c8c-ad53-66c257d02021@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I have a list of company names (say, IBM, Corning, General Motors, and
another 5,000 of them).
If I take a body of text, a news article, for instance, and I want to
see which company names appear in that text, is there an efficient way
to do this?
I thought about looping through the array of names, and doing an
IndexOf or Regex match, but this method is slow. Then I thought about
an array intersection, but this is problematic for two-word company
names (you can't just create the second array based on a split on
spaces).
Any hints would be much appreciated!
--Brent
.
- References:
- Prev by Date: Re: Update Thread
- Next by Date: reading Crystal report in c#
- Previous by thread: Re: Checking if a list of names appears in a body of text.
- Next by thread: Re: Checking if a list of names appears in a body of text.
- Index(es):
Relevant Pages
|