Skip to content

consensus_txt.py: string indices must be integers #2

@eastofesten

Description

@eastofesten
(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

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