题目:在△ABC中,AB=AC,△ABC的外接圆⊙O的弦AD的延长线交BC的延长线于点E
依存句法分析代码:
from aip import AipNlp
client = AipNlp(APP_ID, API_KEY, SECRET_KEY)
res = client.depParser(sentence).get('items', [])
依存句法分析结果:
[
{"postag": "p", "head": 21, "word": "在", "deprel": "ADV"},
{"postag": "w", "head": 3, "word": "△", "deprel": "ATT"},
{"postag": "n", "head": 4, "word": "ABC", "deprel": "ATT"},
{"postag": "f", "head": 1, "word": "中", "deprel": "POB"},
{"postag": "w", "head": 1, "word": ",", "deprel": "WP"},
{"postag": "x", "head": 8, "word": "AB", "deprel": "ATT"},
{"postag": "w", "head": 8, "word": "=", "deprel": "ATT"},
{"postag": "n", "head": 21, "word": "AC", "deprel": "SBV"},
{"postag": "w", "head": 8, "word": ",", "deprel": "WP"},
{"postag": "w", "head": 12, "word": "△", "deprel": "DE"},
{"postag": "n", "head": 10, "word": "ABC", "deprel": "COO"},
{"postag": "u", "head": 13, "word": "的", "deprel": "DE"},
{"postag": "n", "head": 8, "word": "外接圆", "deprel": "COO"},
{"postag": "ng", "head": 13, "word": "⊙", "deprel": "COO"},
{"postag": "x", "head": 16, "word": "O", "deprel": "DE"},
{"postag": "u", "head": 17, "word": "的", "deprel": "DE"},
{"postag": "n", "head": 19, "word": "弦", "deprel": "DE"},
{"postag": "n", "head": 17, "word": "AD", "deprel": "COO"},
{"postag": "u", "head": 20, "word": "的", "deprel": "DE"},
{"postag": "n", "head": 8, "word": "延长线", "deprel": "COO"},
{"postag": "v", "head": 0, "word": "交", "deprel": "HED"},
{"postag": "n", "head": 23, "word": "BC", "deprel": "DE"},
{"postag": "u", "head": 24, "word": "的", "deprel": "DE"},
{"postag": "n", "head": 21, "word": "延长线", "deprel": "VOB"},
{"postag": "p", "head": 21, "word": "于", "deprel": "CMP"},
{"postag": "ng", "head": 25, "word": "点", "deprel": "POB"},
{"postag": "x", "head": 26, "word": "E", "deprel": "ADJ"}
]
依存句法树:
]
结果解析稍后加。