OpenLID
收藏资源简介:
OpenLID是一个包含200多种语言的自然语言识别数据集,用于训练模型。数据集详细记录了每种语言的句子、语言代码和脚本,以及数据来源。数据集经过采样处理,以减少类别的偏斜。
OpenLID is a natural language identification dataset encompassing over 200 languages, designed for model training. The dataset meticulously documents sentences, language codes, scripts, and data sources for each language. It has undergone sampling processes to mitigate class imbalance.
数据集概述
数据集名称
- OpenLID
数据集功能
- 支持201种语言的自然语言识别。
- 提供训练数据和模型,用于训练语言识别模型。
数据集特点
- 支持201种语言。
- 高性能、快速且易于使用。
- 训练数据和每种语言的性能数据公开透明。
- 提供量化模型,内存占用小(7MB),性能接近原始模型。
数据集下载与使用
-
数据集大小约为21GB。
-
下载命令: shell wget https://data.statmt.org/lid/lid201-data.tsv.gz pigz -dc lid201-data.tsv.gz | awk -F" " {print"label"$2" "$1} > lid201-data.fasttext.tsv
-
数据集格式:每行包含一个句子、语言代码和脚本信息。
-
提供未采样的数据集下载链接。
数据集训练
-
使用fastText进行模型训练。
-
训练命令示例: shell fasttext supervised -input lid201-data.fasttext.tsv -output lid201-model -minCount 1000 -bucket 1000000 -minn 2 -maxn 5 -lr 0.8 -dim 256 -epoch 2 -thread 68 -wordNgrams 1
-
量化模型训练命令示例: shell fasttext quantize -input lid201-data.fasttext.tsv -output lid201-model -minCount 1000 -bucket 1000000 -minn 2 -maxn 5 -lr 0.8 -dim 256 -epoch 2 -thread 68 -wordNgrams 1 -qnorm -cutoff 50000 -retrain
许可证
- 模型使用GNU General Public License v3.0。
- 训练数据集中的各个数据集具有不同的许可证,但均允许免费用于研究。




