Thanks to visit codestin.com
Credit goes to github.com

Skip to content

mlevay/sentence-to-clauses

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A python script to break a sentence into clauses.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%