Syntax Error

Issue #1 resolved
Ravindra H. created an issue

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)

  1. Rami Al-Rfou repo owner

    I think this syntax is supported in Python 2.7+.

    If you use older Python

    WEEK_DAYS = set(['Sunday', 'Sun.', 'Monday', 'Mon.', 'Tuesday', 'Tu.', ...])
    
  2. Log in to comment