Git Product home page Git Product logo

predicat's Introduction

PREDICAT

API pour classification des libellés de caisse

En lien avec l'application: https://github.com/InseeFrLab/product-labelling

Quick start

git clone https://github.com/InseeFrLab/predicat.git
cd predicat
pip3 install -r requirements.txt
cd app
uvicorn main:app # model not found, see below

Using models

Predicat loads all models defined in config.yaml.

models:
  - na2008_old

Predicat needs at least one model to start.
Referencing a model that does not exist leads to a ValueError :

ValueError: model/model_na2008.bin cannot be opened for loading!

A basic model, for demonstration purposes, can be downloaded here :
https://minio.lab.sspcloud.fr/conception-logicielle/model_na2008.bin

curl https://minio.lab.sspcloud.fr/conception-logicielle/model_na2008.bin -o model_na2008.bin
mkdir model
mv model_na2008.bin model/model_na2008.bin

predicat's People

Contributors

fcomte avatar labenech avatar olevitt avatar ragatzino avatar timeteos avatar tomseimandi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

predicat's Issues

Implicit requirement : C++ compiler

I tried to run the application but the pip install -r requirements.txt fails with error related to fasttext :

error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools

It seems that fasttext needs a C++ compiler. We should reflect that on the documentation.

Add a license

For now, this repository has no license. Maybe could we use the MIT License?

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.