我有一个遵循 CONLL 格式的数据集,带有令牌级注释。
token label
Also O
, O
outdoor B-claim
activities I-claim
enable I-claim
me I-claim
to I-claim
socialize I-claim
with I-claim
other I-claim
people I-claim
and I-claim
enjoy I-claim
natural I-claim
beauty I-claim
. O
There O
are O
strong O
advantages O
to O
spend O
leisure O
time O
outdoors O
. O
空行分隔文档的句子。每个句子都被视为机器学习模型中的实例。我想将数据集拆分为训练、测试和开发,但要确保数据集之间没有拆分任何句子。python中是否有任何库可用于拆分此类数据集,还是必须手动执行此操作?
提前致谢!