openspg
openspg copied to clipboard
knowledge_unit.py中的中英文逗号,,导致knowledge_unit_extractor.py解析出错。
knowledge_unit.py的
{
"No Mediocre Song Details":{
"Content": "\"No Mediocre\" is a song by American rapper T.I., released as the lead single from his ninth studio album \"Paperwork\" (2014). The track, produced by DJ Mustard, includes a guest appearance by Australian rapper Iggy Azalea. It peaked at number 69 on the US Billboard Hot 100 and was met with positive reviews for its production and Azalea's contribution.",
"Knowledge Type": "Factual Knowledge",
"Structural Content": "",
"Domain Ontology": "Music -> Hip Hop -> T.I. Discography -> No Mediocre",
**"Core Entities": "T.I. , No Mediocre, Paperwork,DJ Mustard,Iggy Azalea, US Billboard Hot 100",**
"Related Query": ["What is the lead single from T.I.'s ninth studio album?", "Who produced the song 'No Mediocre'?", "What was the peak position of 'No Mediocre' on the US Billboard Hot 100?"],
"Extended Knowledge Points": ["T.I.'s discography", "DJ Mustard's production work", "Iggy Azalea's collaborations", "US Billboard Hot 100 chart", "Critical reception of 'No Mediocre'", "Soundtrack for 'Think Like a Man Too'"]
}
}
原来定义的是:
会导致knowledge_unit_extractor.py中: https://github.com/OpenSPG/KAG/blob/master/kag/builder/component/extractor/knowledge_unit_extractor.py#L587C13-L587C77出现解析错误。