Nlp 如何在JSON中存储令牌信息的自定义属性并用于培训
使用,我无法在JSON中存储自定义令牌属性Nlp 如何在JSON中存储令牌信息的自定义属性并用于培训,nlp,spacy,Nlp,Spacy,使用,我无法在JSON中存储自定义令牌属性 { "id": 0, "paragraphs": [ { "raw": "Complete the nlp task", "sentences": [ { "tokens": [ { "id": 0,
{
"id": 0,
"paragraphs": [
{
"raw": "Complete the nlp task",
"sentences": [
{
"tokens": [
{
"id": 0,
"orth": "Complete",
"tag": "VB",
"head": 0,
"dep": "ROOT",
"ner": "O"
},
{
"id": 1,
"orth": "the",
"tag": "DT",
"head": 2,
"dep": "det",
"ner": "O"
},
{
"id": 2,
"orth": "nlp",
"tag": "NN",
"head": 1,
"dep": "compound",
"ner": "O"
},
{
"id": 3,
"orth": "task",
"tag": "NN",
"head": -3,
"dep": "dobj",
"ner": "O"
}
],
"brackets": []
}
]
}
]
}
如何存储自定义属性?
我还可以使用spacy train
训练自定义属性
不可撤销的详细信息:
我知道可以制作一个自定义doc_to_json,它也会存储自定义属性,但是如果我无法训练模型来标记自定义属性,那么它就没有用了。您试图使用自定义属性训练什么组件?@aab例如:我有一个自定义属性
令牌。\ tasktype
我想训练这