Skip to content

Must generate word counts #1

@izahn

Description

@izahn

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions