You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also, if I remove pull_requests from the json, the filtered jsonl loads just fine too. e.g.
importjsonfiltered_lines= []
withopen("datasets-issues.jsonl", "r") asf:
forlineinf:
data=json.loads(line.strip()) # Parse each line as JSONifnotdata.get("pull_request"): # Check if "pull_request" key is absentfiltered_lines.append(line)
# Write the filtered lines to a new filewithopen("filtered_jsonl.jsonl", "w") asf:
f.writelines(filtered_lines)
https://huggingface.co/learn/nlp-course/chapter5/5?fw=pt
https://discuss.huggingface.co/t/chapter-5-questions/11744/83?u=fancellu
issues_dataset = load_dataset("json", data_files="datasets-issues.jsonl", split="train")
barfs with
Someone else saw the same too in Sept 2023
The text was updated successfully, but these errors were encountered: