CoolFace
Modelpublic

igorsterner/xlmr-multilingual-sentence-segmentation

sourceHugging Facemitupdated 2y agoView on Hugging Face
5likes157downloads
Model Card

⚠️ Warning: An updated version of this model is available [here](https://huggingface.co/segment-any-text/sat-12l-sm) This model is no longer maintained.

Please refer to our Segment any Text paper for more details: [https://arxiv.org/abs/2406.16678](https://arxiv.org/abs/2406.16678)

xlmr-multilingual-sentence-segmentation

This model is a fine-tuned version of xlm-roberta-base on a corrupted version of the universal dependency datasets. It achieves the following results on the (also corrupted) evaluation set:

  • Loss: 0.0074
  • Precision: 0.9664
  • Recall: 0.9677
  • F1: 0.9670

Test set performance

Results

All results here are percentage F1:

Opus100 [2]

Who wins most? XLM-RoBERTa: 56, WtPSplit: 12, Spacy (multilingual): 8

afamarazbebgbncacscydadeeleneoeseteufafifrfygagdglguhahehihuhyidisitjakakkkmknkokukyltlvmgmkmlmnmrmsmynenlpaplpsptrorusiskslsqsrsvtatethtrukuruzvixhyizh
Spacy (multilingual)42.616.6958.5273.5934.7893.7438.0488.7687.7026.3090.5274.1589.7589.2588.7790.9587.2681.2055.4093.2885.7721.4960.6136.8388.775.5989.3992.2153.3393.2624.1490.1395.3886.320.2038.2442.390.109.6651.7927.6421.7776.9177.0283.6093.7439.0933.2386.5687.390.106.5993.655.2692.422.4192.0791.6375.9575.9192.1393.0092.9695.0193.5236.9764.5921.6494.0589.6829.1764.9990.5964.894.140.09
WtPSplit76.9059.0868.0876.4271.2993.9779.7689.7989.3673.2190.0280.7492.8091.9192.2492.1184.4787.2459.9791.9688.5365.8479.4983.3390.3170.5182.4390.5866.7093.0087.1489.8094.7787.4341.7991.2673.2569.5468.9856.2179.1283.9481.3382.7089.3392.8780.8173.2689.2088.5165.5471.3392.6364.1192.7262.8491.0590.9184.2380.3292.3092.1990.3294.7692.0863.4876.4968.8893.3089.6052.5977.7991.2980.2875.7071.64
XLM-RoBERTa (ours)83.9741.5981.5681.3085.6894.3484.1091.8091.2378.7292.6486.7393.8794.5094.5793.1890.1990.2874.7994.0690.4681.7684.3385.6292.5567.2686.6191.2272.6994.5389.8392.2493.7889.2741.4378.3989.1536.6070.5182.7758.1489.4189.9988.2586.8292.8186.1494.7393.2592.4449.3966.0293.6069.2293.5161.8692.8493.1989.4786.2492.9593.4691.7994.1693.9372.7481.7774.4993.1792.1562.9275.6593.4184.8956.8577.07

Universal Dependencies [3]

Who wins most? XLM-RoBERTa: 24, WtPSplit: 17 Spacy (multilingual): 13

afarbebgbncacscydadeeleneseteufafifrgagdglhehihuhyidisitjajvkkkolaltlvmrnlplptroruskslsqsrsvtathtrukurvizh
Spacy (multilingual)98.4780.3880.2793.6251.8598.9589.6898.8994.9688.0294.1692.2098.7093.7795.7999.8392.8896.3396.6763.0492.3794.370.3298.4511.3998.0195.4192.490.3798.0396.2199.800.0993.8698.5292.1392.8697.0294.9198.0584.3190.2698.23100.0097.8494.9166.671.9597.6394.160.3796.400.40
WtPSplit98.2783.0089.2898.1699.1298.5292.9899.2694.5696.1396.9494.7397.6094.0997.2497.2994.6996.7186.6072.1798.8795.7996.7896.0896.8098.4186.3995.4595.8498.1896.2899.1191.4397.6796.4291.8493.6195.9296.1381.5086.2895.5796.8599.1798.4595.8697.5470.2696.0092.0893.7992.9797.25
XLM-RoBERTa (ours)96.8178.9991.6097.8999.1295.9996.0597.1796.6296.2994.3394.7695.7396.2097.3797.4996.3495.7089.7884.2095.7295.9597.5196.2495.6297.2292.9396.8894.2396.2998.4097.4696.3595.8296.9195.9296.2797.2495.8394.6391.5995.8896.4398.3696.8394.9595.9389.2696.5294.5996.2097.3195.12

Ersatz [4]

Who wins most? XLM-RoBERTa: 10, WtPSplit: 8, Spacy (multilingual): 4

arcsdeenesetfifrguhijakkkmltlvplpsrorutatrzh
Spacy (multilingual)91.2696.4693.8994.4097.3197.1594.9996.434.4418.410.1897.110.0893.5398.7393.6994.4494.8793.4568.6595.390.10
WtPSplit89.4593.4195.9397.1698.7495.8497.1097.6190.6294.8782.1495.9482.8996.7497.2295.1686.9997.5597.8294.7693.5389.02
XLM-RoBERTa (ours)79.7896.9497.0296.1097.0696.8097.6796.3393.7395.3477.5497.2878.9496.1396.4596.7192.3396.2497.1595.9495.7690.11

German--English code-switching [5]

de
Spacy (multilingual)79.55
WtPSplit77.41
XLM-RoBERTa (ours)85.78

[1] Where’s the Point? Self-Supervised Multilingual Punctuation-Agnostic Sentence Segmentation (Minixhofer et al., ACL 2023)

[2] Improving Massively Multilingual Neural Machine Translation and Zero-Shot Translation (Zhang et al., ACL 2020)

[3] Universal Dependencies (de Marneffe et al., CL 2021)

[4] A unified approach to sentence segmentation of punctuated text in many languages (Wicks & Post, ACL-IJCNLP 2021)

[5] The Denglisch Corpus of German-English Code-Switching (Osmelak & Wintner, SIGTYP 2023)

Training hyperparameters

The following hyperparameters were used during training:

  • learning_rate: 2e-05
  • trainbatchsize: 64
  • evalbatchsize: 64
  • seed: 42
  • optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • lrschedulertype: linear
  • num_epochs: 5

Training results

Training LossEpochStepValidation LossPrecisionRecallF1
No log0.21000.01250.93200.94870.9403
No log0.42000.00990.95470.95130.9530
No log0.63000.00920.96160.95060.9561
No log0.814000.00830.95840.96180.9601
0.02121.015000.00820.95510.96420.9596
0.02121.216000.00840.96300.96140.9622
0.02121.417000.00790.96060.96480.9627
0.02121.618000.00770.96090.96610.9635
0.02121.819000.00760.96230.96490.9636
0.00672.0210000.00770.95980.96890.9643
0.00672.2211000.00750.96140.96800.9647
0.00672.4212000.00730.96260.96820.9654
0.00672.6213000.00750.96170.96920.9654
0.00672.8214000.00730.96580.96480.9653
0.00543.0215000.00760.96560.96630.9660
0.00543.2316000.00730.96250.97030.9664
0.00543.4317000.00730.96580.96590.9658
0.00543.6318000.00730.96260.97070.9666
0.00543.8319000.00730.96590.96770.9668
0.00464.0320000.00750.96710.96590.9665
0.00464.2321000.00750.96540.96870.9671
0.00464.4422000.00750.96620.96760.9669
0.00464.6423000.00740.96570.96840.9670
0.00464.8424000.00740.96640.96780.9671

Framework versions

  • Transformers 4.39.1
  • Pytorch 2.2.1+cu121
  • Datasets 2.18.0
  • Tokenizers 0.15.2

Citation

Please consider citing our paper if this model has helped you:

@inproceedings{frohman-etal-2024-segment,
    title = "Segment Any Text: A Universal Approach for Robust, Efficient and Adaptable Sentence Segmentation",
    author={Markus Frohmann and Igor Sterner and Ivan Vulić and Benjamin Minixhofer and Markus Schedl},
    month = nov,
    year = "2024",
    publisher = "Association for Computational Linguistics",
}