mikefab / clause_extractor Goto Github PK
View Code? Open in Web Editor NEWA gem that extracts verbal clauses from strings
A gem that extracts verbal clauses from strings
clause_extractor receives a string and returns an hash of tense names and verbal clauses. It was created specifically for use by Audioverb.com, a search engine of subtitles. clause_extractor does not sentencize, therefore only submit one sentence at a time. Usage in irb: 1.9.3-p194 :008 > require "clause_extractor" ClauseExtractor.get_clauses("She would have grilled her. She had been grilling. I have gone.") prints: tense:clause:word index range conditional perfect:she would have grilled:0..3 past perfect progressive:she had been grilling:5..8 present perfect:i have gone:9..11 And returns: {"conditional perfect:she would have grilled:0..3"=>0..3, "past perfect progressive:she had been grilling:5..8"=>5..8, "present perfect:i have gone:9..11"=>9..11}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.