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

Must generate word counts #1

Open
izahn opened this issue Feb 24, 2015 · 1 comment
Open

Must generate word counts #1

izahn opened this issue Feb 24, 2015 · 1 comment

Comments

@izahn
Copy link

izahn commented Feb 24, 2015

On the step

I can just write clean text files (with suffix clean.txt)
or I can also write tab-separated files that count the words
in each file after correction.
1) Text only or 2) text-plus-wordcounts? (1 or 2): 1) Text only or 2) text-plus-wordcounts? (1 or 2): 1

the OCRnormalizer.py script only works if I select 2. If I select 1 I get

Traceback (most recent call last):
  File "OCRnormalizer.py", line 351, in <module>
    main()
  File "OCRnormalizer.py", line 313, in main
    metatuple = (outfilename, str(totalwordsinvol), str(pre_matched), str(pre_english), str(post_matched),
UnboundLocalError: local variable 'totalwordsinvol' referenced before assignment
@tedunderwood
Copy link
Owner

Thanks for the notification.

Ted

Ted Underwood
Professor of English
Liberal Arts and Sciences Centennial Scholar
University of Illinois, Urbana-Champaign

On Tue, Feb 24, 2015 at 10:44 AM, Ista Zahn [email protected]
wrote:

On the step

I can just write clean text files (with suffix clean.txt)
or I can also write tab-separated files that count the words
in each file after correction.

  1. Text only or 2) text-plus-wordcounts? (1 or 2): 1) Text only or 2) text-plus-wordcounts? (1 or 2): 1

the OCRnormalizer.py script only works if I select 2. If I select 1 I get

Traceback (most recent call last):
File "OCRnormalizer.py", line 351, in
main()
File "OCRnormalizer.py", line 313, in main
metatuple = (outfilename, str(totalwordsinvol), str(pre_matched), str(pre_english), str(post_matched),
UnboundLocalError: local variable 'totalwordsinvol' referenced before assignment


Reply to this email directly or view it on GitHub
#1.

tedunderwood pushed a commit that referenced this issue Dec 28, 2015
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