CoolFace
Modelpublic

AntoineBourgois/propp-fr_NER_camembert-large_PER

sourceHugging Faceapache-2.0updated 4mo agoView on Hugging Face
0likes
Model Card

language: fr tags:

  • —NER
  • —camembert
  • —literary-texts
  • —nested-entities
  • —propp-fr license: apache-2.0 metrics:
  • —f1
  • —precision
  • —recall base_model:
  • —almanach/camembert-large pipeline_tag: token-classification ---

INTRODUCTION:

This model, developed as part of the propp-fr project, is a NER model built on top of camembert-large embeddings, trained to predict nested entities in french, specifically for literary texts.

The predicted entities are:

  • —mentions of characters (PER): pronouns (je, tu, il, ...), possessive pronouns (mon, ton, son, ...), common nouns (le capitaine, la princesse, ...) and proper nouns (Indiana Delmare, Honoré de Pardaillan, ...)
  • —facilities (FAC): chatêau, sentier, chambre, couloir, ...
  • —time (TIME): le règne de Louis XIV, ce matin, en juillet, ...
  • —geo-political entities (GPE): Montrouge, France, le petit hameau, ...
  • —locations (LOC): le sud, Mars, l'océan, le bois, ...
  • —vehicles (VEH): avion, voitures, calèche, vélos, ...

MODEL PERFORMANCES (LOOCV):

NER_tagprecisionrecallf1_scoresupportsupport %
PER94.58%95.16%94.87%71,738100.00%
micro_avg94.58%95.16%94.87%71,738100.00%
macro_avg94.58%95.16%94.87%71,738100.00%

TRAINING PARAMETERS:

  • —Entities types: ['PER']
  • —Tagging scheme: BIOES
  • —Nested entities levels: [0, 1]
  • —Split strategy: Leave-one-out cross-validation (31 files)
  • —Train/Validation split: 0.85 / 0.15
  • —Batch size: 16
  • —Initial learning rate: 0.00014

MODEL ARCHITECTURE:

Model Input: Maximum context camembert-large embeddings (1024 dimensions)

  • —Locked Dropout: 0.5
  • —Projection layer:
  • —layer type: highway layer
  • —input: 1024 dimensions
  • —output: 2048 dimensions
  • —BiLSTM layer:
  • —input: 2048 dimensions
  • —output: 256 dimensions (hidden state)
  • —Linear layer:
  • —input: 256 dimensions
  • —output: 5 dimensions (predicted labels with BIOES tagging scheme)
  • —CRF layer

Model Output: BIOES labels sequence

HOW TO USE:

Propp Documentation

TRAINING CORPUS:

DocumentTokens CountIs included in model eval
01731Prévost-Antoine-FrançoisManon-Lescaut_PER-ONLY71,219 tokensTrue
11830Balzac-Honoré-deLa-maison-du-chat-qui-pelote24,776 tokensTrue
21830Balzac-Honoré-deSarrasine15,408 tokensTrue
31832Sand-GeorgeIndiana_PER-ONLY112,221 tokensTrue
41836Gautier-ThéophileLa-morte-amoureuse14,293 tokensTrue
51837Balzac-Honoré-deLa-maison-Nucingen30,030 tokensTrue
61841Sand-GeorgePauline12,398 tokensTrue
71856Cousin-VictorMadame-de-Hautefort11,768 tokensTrue
81863Gautier-ThéophileLe-capitaine-Fracasse11,848 tokensTrue
91873Zola-ÉmileLe-ventre-de-Paris12,613 tokensTrue
101881Flaubert-GustaveBouvard-et-Pécuchet12,308 tokensTrue
111882-1883Maupassant-Guy-deMademoiselle-Fifi-La-buche2,267 tokensTrue
121882-1883Maupassant-Guy-deMademoiselle-Fifi-La-relique2,041 tokensTrue
131882-1883Maupassant-Guy-deMademoiselle-Fifi-La-rouille2,949 tokensTrue
141882-1883Maupassant-Guy-deMademoiselle-Fifi-Madame-Baptiste2,578 tokensTrue
151882-1883Maupassant-Guy-deMademoiselle-Fifi-Marocca4,078 tokensTrue
161882-1883Maupassant-Guy-deMademoiselle-Fifi-Nouveaux-contes-A-cheval2,878 tokensTrue
171882-1883Maupassant-Guy-deMademoiselle-Fifi-Nouveaux-contes-Fou1,905 tokensTrue
181882-1883Maupassant-Guy-deMademoiselle-Fifi-Nouveaux-contes-Mademoiselle-Fifi5,439 tokensTrue
191882-1883Maupassant-Guy-deMademoiselle-Fifi-Nouveaux-contes-Reveil2,159 tokensTrue
201882-1883Maupassant-Guy-deMademoiselle-Fifi-Nouveaux-contes-Un-reveillon2,364 tokensTrue
211882-1883Maupassant-Guy-deMademoiselle-Fifi-Nouveaux-contes-Une-ruse2,469 tokensTrue
221901Achard-LucieRosalie-de-Constant-sa-famille-et-ses-amis12,775 tokensTrue
231903Conan-LaureÉlisabeth-Seton13,046 tokensTrue
241904-1912Rolland-RomainJean-Christophe(1)10,982 tokensTrue
251904-1912Rolland-RomainJean-Christophe(2)10,305 tokensTrue
261917Bourgeois-AdèleNémoville12,468 tokensTrue
271923DellyDans-les-ruines95,617 tokensTrue
281923Radiguet-RaymondLe-diable-au-corps14,850 tokensTrue
291926Audoux-MargueriteDe-la-ville-au-moulin12,144 tokensTrue
301937Audoux-MargueriteDouce-Lumière12,346 tokensTrue
31TOTAL554,542 tokens3 files used for cross-validation

PREDICTIONS CONFUSION MATRIX:

Gold LabelsPEROsupport
PER68,2673,47171,738
O3,91003,910

CONTACT:

mail: antoine [dot] bourgois [at] protonmail [dot] com