Skip to content

A codespace to run the French CamemBERT language model which is a great model for text prediction based on RoBERTa architecture through a minimalist web API.

Notifications You must be signed in to change notification settings

benjaminchazelle/camembert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CamemBERT API

About

A codespace to run the French CamemBERT language model which is a great model for text prediction based on RoBERTa architecture through a minimalist web API.

This project use the 110M parameters camembert-base version of the model, trained with OSCAR (138 Gb of text).

Under the hood, the model is run in Docker image containing a Python + PyTorch environment.

Install

Python dependencies can be installed thanks to this command.

install.sh

Model dependency is solved during the first run.

Run

run.sh

API usage

GET /?pattern=Hello <mask>

The pattern query parameter is mandatory and must contain the <mask> occurence.

Result is a JSON string array containing word predictions sorted by probability.

About

A codespace to run the French CamemBERT language model which is a great model for text prediction based on RoBERTa architecture through a minimalist web API.

Topics

Resources

Stars

Watchers

Forks