GithubHelp home page GithubHelp logo

paddy74 / lowletorfeats Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 229 KB

A library for the collection of common low-level features used in learning-to-rank algorithms.

License: MIT License

CMake 25.40% C++ 74.60%
bm25 bm25f cpp-library feature-extraction learning-to-rank library ltr tfidf

lowletorfeats's People

Contributors

paddy74 avatar

Watchers

 avatar  avatar

lowletorfeats's Issues

Implement LMIR.jm

Implement the methods for Jelinek-Mercer smoothing.

  • LMIR.jm()
  • FeatureCollector option

Implement LMIR.dir

Implement the methods for Bayesian smoothing using Dirichlet priors.

  • LMIR.dir()
  • FeatureCollector option

Write test cases

Create the following test cases

  • FeatureCollector
  • FeatureKey
  • Document
  • TFIDF
  • Okapi
  • LMIR

Handle map out_of_range exceptions

test_main results in an exception std::out_of_range during map call of .at.

Should be covered by exception handling with try/catch statements.

Set default analyzer

A default text analyzer is required in the FeatureCollector class for the private member variable anlyzToTfMapLenPair.

One of the following options might be pursued:

  • A very simple in-project analyzer.
  • Custom out-of-project analyzer (see paddy74/textalyzer.
    • Requires abstraction of the token type instead of using std::string

Issues with strSplit

Having a lot of strange issues with the utils::strSplit function where it will not work if implemented under the following conditions:

  • Defined in .cpp files
  • Defined without template
  • Defined directly in function using utils::strSplit
  • Defined in same file as function using utils::strSplit

It only seems to work only when defined in utils.hpp using template<typename T>.

Unable to create instances of FeatureKey

Receive a Floating point exception (core dumped) error upon attempting to create an instance of the FeatureKey class. This occurs in the constructor when attempting to assign any member variables from the type maps.

This is some issue with calling any operation on one of the unordered_map type maps.

Implement LMIR.abs

Implement the methods for absolute discounting smoothing.

  • LMIR.abs()
  • FeatureCollector option

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.