Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7064197
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:48:16+00:00 2026-05-28T04:48:16+00:00

I am looking to recognize simple phrases like the ones what happens in google

  • 0

I am looking to recognize simple phrases like the ones what happens in google calendar
but rather than parsing Calendar Entries I have to parse Sentence related to finance, accounting and to do lists. So For example I have to parse sentences like

I spent 50 dollars on food yesterday

I need to mark an separate the info as Reason : 'food' , Cost : 50 and Time: <Yesterday's Date>

My question is do I go in for a full fledged Natural Language Processing like
given in these Questions and use Something like GATE

Machine Learning and Natural Language Processing

Natural Language Processing in Ruby

Ideas for Natural Language Processing project?

https://stackoverflow.com/a/3058063/492561

Or is it better to Write simple grammars using Something like AntLR and try to recognize it .

Or should I go really low and just Define a syntax and use Regular expressions .

Time is a Constraint , I have about 45 – 50 Days , And I don’t know how to use AntLR or NLP libraries like GATE.

Preferred languages : Python , Java , Ruby (Not in any particular order)

PS : This is not home-work , So please Don’t tag it as so.

PPS : Please try to give an answer with Facts on why using a particular method is better.
even if a particular method may not fit inside the time constraint please feel free to share it because It might benefit someone else .

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T04:48:17+00:00Added an answer on May 28, 2026 at 4:48 am

    You could look at named entity recognition indeed. From your question I understand your domain is pretty well defined, so you can identify the (few?) entities (dates, currencies, money amount, time expressions, etc.) that are relevant for you. If the phrases are very simple, you could go with a rule-based approach, otherwise it’s likely to get too complex too soon.

    Just to get yourself up and running in a few sec, http://timmcnamara.co.nz/post/2650550090/extracting-names-with-6-lines-of-python-code is an extremely nice example of what you could do. Of course I would not expect an high accuracy from just 6 lines of python, but it should give you an idea of how it works:

    1>>> import nltk
    2>>> def extract_entities(text):
    3...     for sent in nltk.sent_tokenize(text):
    4...         for chunk in nltk.ne_chunk(nltk.pos_tag(nltk.word_tokenize(sent))):
    5...             if hasattr(chunk, 'node'):
    6...                 print chunk.node, ' '.join(c[0] for c in chunk.leaves())
    

    The core idea is on line 3 and 4: on line 3 it split text in sentences and iterates them.
    On line 4, it splits the sentence in tokens, it runs “part of speech” tagging on the sentence, and then it feeds the pos-tagged sentence to the named entity recognition algorithm. That’s the very basic pipeline.

    In general, nltk is an extremely beautiful piece of software, and very well documented: I would look at it. Other answers contain very useful links.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Looking for best advice on how to do this: I have an insert like
I have to do a simple task, but I don't know how to do
I have a simple (but performance critical) algorithm in C (embedded in C++) to
Recently I have been looking at jquery/javascript solutions to emulating the placeholder attribute, but
Looking to do a bit of refactoring... Using NHibernate I have this query currently
Looking at the Slickgrid examples and using Google Chrome, I'm setting a breakpoint on
I have been looking into the php fputcsv function, and have heard some comments
I saw this question Simple example of threading in C++ but my problem is
I want a few menu entries that show accelerators that are normal keys, like
I've searched for questions, looking at forums, books, etc. I can recognize a polymorphic

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.