Giter Site home page Giter Site logo

simple_tense_detector's Introduction

simple_tense_detector

This is a simple present/past/future tense detector of a sentence using DEP-POS tagger. This detector assumes POS tagger output is Penn tree bank POS tags ( Penn tree bank Tags with examples )

Installation.

Step 1) Install the POS server as per instructions in the URL below and test the server first https://github.com/ajitrajasekharan/JPTDP_wrapper.git

After this step a server should be running on port 8028. The step below expects that. If running the server on a different port, specify a different port to the command open in step 2 below. python tense_detector.py --help for the options

Step 1 requires python 2.7

Step 2) python tense_detector.py

VERB DEPTH SCORE[0-1]|tense type - undecided,present,past,future, no verb|confidence [0-1]|sentence
1|future|0.18|We will repeat a stress test on him next spring to make sure he has not had progression of disease in his other arteries.
1|past|1.0|He fell down and broke his leg
1|past|1.0|Her hypophysitis secondary to ipilimumab was well managed with supplemental hormones
1|past|0.57|She imagined herself going into the future and baking a cake
1|past|0.9|He fell down and bled to death near the park where children were playing and having fun with their parents
1|past|0.47|Before going to the school he decided to examine the landscape
1|future|0.2|He will try to fly his kite again tomorrow
1|present|0.67|He plans to finish his school sometime in the distant future
1|present|1.0|Patient history includes asthma and peanut allergy
1|future|0.2|He could finish his homework if he only tried

Step 2 requires python 3+

License

MIT License

simple_tense_detector's People

Contributors

ajitrajasekharan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.