→ AI3767:result解,疑似格式有誤? 08/02 21:48
I have a extration problem for multi-level string.
This string is the result for relation dictionary. When I look "query" up in the dictionary, the result is "{A:1={B},2={C:3={D:4={E}}},5={F}}".
The relations will be represented as a triple way - "relation(entity1, entity2)". All possible relations between "query" and "result" as below:
(1) 1(A,B)
(2) 2(query,C)
(3) 3(C,D)
(4) 4(D,E)
(5) 5(A,F)
Does anyone know how to define a function to extract these?
ps. English letters mean entity, numbers mean relation
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.134.15.92