Giter Site home page Giter Site logo

sentence-to-clauses's Introduction

Sentence-to-Clauses

A python implementation of extracting clauses from a sentence.

Example

Example of sentences and their clauses.

Sentence Clauses
The dog went to the county fair. ['The dog went to the county fair']
He plays cricket but does not play hockey. ['He plays cricket', 'He does not play hockey']
Joe waited for the train, but the train was late. ['Joe waited for the train', 'the train was late']
I can’t believe how fast the dog ran to the county fair. ["I ca n't believe", 'the dog ran to the county fair']
Joe realized that the train was late while he waited at the train station. ['Joe realized', 'the train was late', 'he waited at the train station']
Mary and Samantha arrived at the bus station early but waited until noon for the bus. ['Mary and Samantha arrived at the bus station early', 'Mary and Samantha waited until noon for the bus']

Dependencies

The project requires Python 3, Nltk and CoreNLP.

Future

Can use other parser like Berkeley parser and compare the results.

License

The MIT License - Copyright (c) 2018 Rahul Kumar Gond

sentence-to-clauses's People

Contributors

rahulkg31 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.