keavil / AAAI18-code

The code of AAAI18 paper "Learning Structured Representation for Text Classification via Reinforcement Learning".
215 stars 81 forks source link

datamanager.py #18

Open 1eclipse opened 4 years ago

1eclipse commented 4 years ago

我想问一下在这个函数中,get_wordvector()里面的 ‘n, dim = map(int, fr.readline().split())’。这段代码是什么意思? map的返回值只有一个吧,而且fr中包含浮点数和英文字符,不能强制转int吧? 希望能得到解答,谢谢!

ludi1027 commented 2 years ago

@1eclipse ,请问您解决这个问题了吗?

ludi1027 commented 2 years ago

@1eclipse 我解决这个问题了,您还需要吗

asdsadsfdf commented 2 years ago

@ludi1027 能帮我解答一下吗?

fun-code-ai commented 1 year ago

@1eclipse 我解决这个问题了,您还需要吗

您好,请问下可以解答一下么