Skip to content

ValueError: Can't read file: patterns\amt_patterns2021-10-12.jsonl\cfg #9485

Discussion options

You must be logged in to vote

Do you have an extra path delimiter at the end of the path you're passing to EntityRuler.from_disk? It seems to be treating whatever you're passing in as a directory, and is trying to read the entity ruler's config file within as a result.

# NO
entity_ruler.from_disk("patterns/amt_patterns2021-10-12.jsonl/")

# YES
entity_ruler.from_disk("patterns/amt_patterns2021-10-12.jsonl")

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@robertpfaff
Comment options

@kinghuang
Comment options

Answer selected by polm
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
windows Issues related to Windows feat / serialize Feature: Serialization, saving and loading
3 participants