Re: Words to numbers
- From: william <huxiankui@xxxxxxxxx>
- Date: Sun, 12 Oct 2008 09:51:57 -0700 (PDT)
Thank you all for the suggestions. Nevertheless, I've accomplished the
number extraction with Perl script. I first build a library of
possible misspellings and convert them to correct ones. Then I use
perl to do a certain pattern search and convert the english numbers to
arabic numbers. Finally I can extract the numbers using kind of fuzzy
logic. As to the -9, because only positive numbers are needed in my
research design. So I use -9 to indicate all non-positive numbers or
cannot find the appropriate number.
Using perl to do natural language processing is really very
interesting. Thank you all again for you inputs.
William
.
- Follow-Ups:
- Re: Words to numbers
- From: sln
- Re: Words to numbers
- Prev by Date: Re: FAQ 4.24 How do I reverse a string?
- Next by Date: Re: Inplace editing the elegant way
- Previous by thread: FAQ 4.8 How do I perform an operation on a series of integers?
- Next by thread: Re: Words to numbers
- Index(es):
Relevant Pages
|