Giter Club home page Giter Club logo

rake-text-ruby's Introduction

ko-fi

Hello! Hello!

I'm Darius, a software developer from Germany. In my free time I work on open-source, web and tech projects for the good.

Links: WebsiteLinkedInXing

rake-text-ruby's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

rake-text-ruby's Issues

Should not split hypenated words

Hey
The text splits hypenated words. Without it the word loses its relevance in a sentence.

text = "India's largest lender State Bank of India SBI and India Mortgage Guarantee Corporation (IMGC) signed a pact to offer mortgage guarantee scheme for prospective non-salaried and self-employed home loan customers. The offering will help increase home loan eligibility up to 15% within the regulatory norms. The MoU between SBI and IMGC is a strategic initiative which will enable to improve housing loan volumes in the non-salaried segment."
irb(main):004:0> rake.analyse text, RakeText.FOX, true
23.83 - help increase home loan eligibility
16.83 - self-employed home loan customers
16.33 - improve housing loan volumes
16.00 - offer mortgage guarantee scheme
14.33 - india mortgage guarantee corporation
4.00 - strategic initiative
4.00 - regulatory norms
4.00 - largest lender
3.83 - india sbi
3.50 - -salaried segment # <==== here, the word was non-salaried. It removed "non"
2.33 - india
1.50 - sbi
1.50 - -salaried
1.00 - enable
1.00 - mou
1.00 - offering
1.00 - prospective
1.00 - pact
1.00 - signed
1.00 - imgc
1.00 - bank
0.00 - 15%

The affected word was non-salaried. It removed non because it was in the stoplist. That ideally should not happen, if it is part of a phrase, which forms a single word, like the above.

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.