问题描述
我想在第二行得到想要的结果。可能吗?
with concurrent.futures.ThreadPoolExecutor() as executor:
postag.extend ( executor.map(findSVOs,[nlp(sentence) for sentence in sentences]
tag_list.extend([y for x in postag for y in x])enter
示例: 输入:['"挑战就是机会。','我要上学了。']
[[[A,'DET'],[challenge,'NOUN'],[is,'AUX'],[an,[机会,[.,'PUNCT']],[[i,'PRON'],[am,
[来,'动词'],[到,'ADP'],[学校,'名词'],[“,'PUNCT'],
[.,'PUNCT']]]
所需的输出(我使用最后一行得到的):
[[A,
[机会,'名词'],[来,'动词'],[到,'ADP'],[学校,[",'PUNCT'],'PUNCT']]
有没有办法在不使用最后一行的情况下获得相同的输出?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)