I´m using Python programming in my project and I need to classify the provided sentences by rule base methods. I want to define rules conditions and actions. How we can create and execute these rule bases?
You can either build a rules engine from the bottom or use any of the Python parse libraries to get you started. The second option can save you a lot of time. Take a loop at these libraries:
https://pypi.python.org/pypi/parse
https://pyparsing.wikispaces.com/
These will help a lot in interpreting your sentences. From there on you could define your generic conditions and actions in classes. The feasibility for this depends a lot of the complexity of the actions you intend to do.
If you need more complexity than just a few basic instruction you might want to take a look into themes like "building a DSL (domain specific language) in Python" or in slang "mini-languages". Check for instance this presentation in slideshare:
Thanks Pedro for your good helping note, actually I´ve used Stanford parser to analyze sentences. I´ve already defined class to add condition and action. My question is about to run action when all of the conditions are satisfied. My goal is reducing the running time while some conditions are not true. Are there commands to run all action in rule base?