Skip to content

Commit

Permalink
Comment out syntax error and add a TODO
Browse files Browse the repository at this point in the history
```
./src/py3.x/nlp/1.语言处理与Python/test.py:34:22: E999 SyntaxError: invalid syntax
Traceback (most recent call last):
                     ^
```
  • Loading branch information
cclauss authored Sep 30, 2018
1 parent 44bcadc commit 5e94c39
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/py3.x/nlp/1.语言处理与Python/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@

# 产生随机文本
text3.generate()
Traceback (most recent call last):
File "E:/nlp/eg1.py", line 25, in <module>
text3.generate()
TypeError: generate() missing 1 required positional argument: 'words'
# TOTO: Clean up the following
# Traceback (most recent call last):
# File "E:/nlp/eg1.py", line 25, in <module>
# text3.generate()
# TypeError: generate() missing 1 required positional argument: 'words'

# 单词数量 标识符总数
print(len(text3))
Expand Down

0 comments on commit 5e94c39

Please sign in to comment.