1
我知道spacy正在解析給定的句子,併爲它做同樣的POS標記。但是在解析完這個句子之後,我想了解一下輸出。解析Spacy的輸出
設定爲下午7點明天報警,
預計輸出
{
Intent : set_alarm,
entity : { "time" : 7PM, "date": tomorrow}
}
輸出spacy:
[
{
word: "Set",
lemma: "set",
NE: "",
POS_fine: "JJ",
POS_coarse: "ADJ",
arc: "ROOT",
children: [
{
word: "alarm",
lemma: "alarm",
NE: "",
POS_fine: "NN",
POS_coarse: "NOUN",
arc: "dobj",
children: [ ]
},
{
word: "for",
lemma: "for",
NE: "",
POS_fine: "IN",
POS_coarse: "ADP",
arc: "prep",
children: [
{
word: "9 pm",
lemma: "9 pm",
NE: "TIME",
POS_fine: "NN",
POS_coarse: "NOUN",
arc: "pobj",
children: [ ]
}
]
},
{
word: "today",
lemma: "today",
NE: "",
POS_fine: "NN",
POS_coarse: "NOUN",
arc: "npadvmod",
children: [ ]
}
]
}
]