Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

range() 手滑漏了一个 len(obj) 吧 #1

Open
fupolarbear opened this issue Jun 14, 2016 · 2 comments
Open

range() 手滑漏了一个 len(obj) 吧 #1

fupolarbear opened this issue Jun 14, 2016 · 2 comments

Comments

@fupolarbear
Copy link

/Volumes/Transcend/Corpus/THULAC-Python/thulac/manage/Preprocesser.pyc in T2S(self, sentence)
    283     def T2S(self, sentence):
    284         newSentence = ""
--> 285         for i in range(sentence):
    286             newSentence += str(getT2S(sentence[i]))
    287         return newSentence

TypeError: range() integer end argument expected, got unicode.
@fupolarbear
Copy link
Author

还有 self.getT2S 漏了 self. 等等一堆迷之错误…我还是先不用 t2s 开关了orz

@gzp9595
Copy link
Member

gzp9595 commented Jun 14, 2016

非常感谢,我们会尽快修复~

2016-06-14 21:08 GMT+08:00 Fu Zuoyou notifications@github.com:

还有 self.getT2S 漏了 self. 等等一堆迷之错误…我还是先不用 t2s 开关了orz


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#1 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AL1GvdjJiGoSWVuZ-1dVckNZ7CtG6F97ks5qLqfHgaJpZM4I1TB1
.

郭志芃
清华大学计算机科学与技术系
电话:18813046062
通信地址:北京市,海淀区,清华大学,紫荆公寓2号楼307B,邮编100084
邮箱:gzp9595@gmail.com

Guo Zhipeng
Department of Computer Science and Technology, Tsinghua University
Tel: 18813046062
Address: Room 307B, No. 2 Zijing Building, Tsinghua University, Beijing,
100084
Email: gzp9595@gmail.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants