Syntax Error
Issue #1
resolved
I'm getting this error on running the program according to README:
python pipeline/pipe.py --conf pipeline/settings.py -f ../input.txt -l DEBUG
Traceback (most recent call last):
File "pipeline/pipe.py", line 12, in <module>
from document import Document
File "/home/kevmit/speedread/pipeline/document.py", line 9, in <module>
from pos import POSTagger
File "/home/kevmit/speedread/pipeline/pos.py", line 9, in <module>
from lists.lists import NUMERALS
File "/home/kevmit/speedread/pipeline/lists/lists.py", line 9
WEEK_DAYS = {'Sunday', 'Sun.', 'Monday', 'Mon.', 'Tuesday', 'Tu.', 'Tue.',
^
SyntaxError: invalid syntax
It seems that the lists are defined with curly braces instead of square brackets.
Comments (3)
-
repo owner -
reporter Yes, I got it working in Python v2.7.3. Thanks!
-
repo owner - changed status to resolved
Python 2.7+ is required
- Log in to comment
I think this syntax is supported in Python 2.7+.
If you use older Python