TextGrapher icon indicating copy to clipboard operation
TextGrapher copied to clipboard

'tuple' object has no attribute 'head'

Open hjh454454 opened this issue 2 years ago • 4 comments

image 请问遇到这个问题怎么解决呀

hjh454454 avatar Feb 16 '23 13:02 hjh454454

我也遇到了一样的问题!请问您解决了吗?

Galaxy404l avatar Mar 08 '23 01:03 Galaxy404l

你好,我没解决,我是通过更换老版本解决的,我没有找到网上的相关文档

---Original--- From: @.> Date: Wed, Mar 8, 2023 09:44 AM To: @.>; Cc: @.@.>; Subject: Re: [liuhuanyong/TextGrapher] 'tuple' object has no attribute 'head'(Issue #23)

我也遇到了一样的问题!请问您解决了吗?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

hjh454454 avatar Mar 08 '23 01:03 hjh454454

要更换到哪个版本呢?

ruarua6666 avatar Mar 09 '23 16:03 ruarua6666

@hjh454454 @Galaxy404l 这两行报错: arc_index = arcs[index].head arc_relation = arcs[index].relation

对应改成以下代码即可: arc_index = arcs[index][0] arc_relation = arcs[index][1]

ZhiminXu avatar Mar 22 '23 13:03 ZhiminXu