Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: NLP - natural language regex-collections?

by kvale (Monsignor)
on Oct 17, 2004 at 00:58 UTC ( #399852=note: print w/replies, xml ) Need Help??

in reply to NLP - natural language regex-collections?

English grammar is far more complex than the languages spanned by any small set of regexes, so I suspect that you will not find the precise set you are looking for. There are some modules that look at coarse text structure, such as Text::Sentence which would be useful in preporcessing your data.

Your best bet is probably to study some example scientific prose that you are interested in and identify a small set of patterns that work for you. Then distill regexes to fit those and only those.

Most information retrieval algorithms focus on keywords and that may be good enough for your app; consider this option first. Keywords are much easier to parse than phrases or sentences. They are the simplest if you want to get something up and running quickly.

There is a branch of computational linguistics called text summarization and there is quite a bit of work in the machine intelligence community devoted to extracting essential content automatically from text. These programs are big, expensive and many man-years of work in the making.


  • Comment on Re: NLP - natural language regex-collections?

Replies are listed 'Best First'.
Re^2: NLP - natural language regex-collections?
by erix (Prior) on Oct 17, 2004 at 07:55 UTC
    A simple keyword approach I have implemented and it works well. But that approach only goes so far.

    The more high-level/multiword/sentence-based my regexes become, the more they leave my specific problem domain, and slide towards the general language domain. This effect surely must be encountered by all language-program programmers who capture text. One would hope eventually to find one anothers' regexes useful, at least at some point to a degree.

    Yes, there are no doubt big expensive programs, but I am doing this for myself. No budget, I am afraid. I have many etexts; I want them accessible on a conceptual level.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://399852]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (7)
As of 2021-05-13 15:17 GMT
Find Nodes?
    Voting Booth?
    Perl 7 will be out ...

    Results (136 votes). Check out past polls.