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

consensus_txt.py: string indices must be integers #2

Open
eastofesten opened this issue Apr 22, 2020 · 0 comments
Open

consensus_txt.py: string indices must be integers #2

eastofesten opened this issue Apr 22, 2020 · 0 comments

Comments

@eastofesten
Copy link

(base) TRLEE:input estene$ python3 consensus_txt.py easy_arabic_classifications.csv ./output/transcription/ -k 'T0-text-transcription' 
Processing: N/A% |                                                                                                                         | ETA:  --:--:--Traceback (most recent call last):
  File "consensus_txt.py", line 177, in <module>
    metadata=args.metadata
  File "consensus_txt.py", line 52, in most_common_text
    _, consensus_text = consensus_score(line['clusters_text'])
TypeError: string indices must be integers

"line” is should be dict, but it’s in fact a string - not sure if that's a code error or data error

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

1 participant