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

[BUG] - Chatbot Tutorial - Unterminated string starting at: line 1 column 91 (char 90) #2273

Open
levalencia opened this issue Mar 28, 2023 · 2 comments

Comments

@levalencia
Copy link

Add Link

https://pytorch.org/tutorials/beginner/chatbot_tutorial.html#chatbot-tutorial

Describe the bug

I downloaded the zip and extracted it.

Now I got this error:

Processing corpus into lines and conversations...
---------------------------------------------------------------------------
JSONDecodeError                           Traceback (most recent call last)
[<ipython-input-14-0fd208236945>](https://localhost:8080/#) in <module>
     11 # Load lines and conversations
     12 print("\nProcessing corpus into lines and conversations...")
---> 13 lines, conversations = loadLinesAndConversations(os.path.join(corpus, "utterances.jsonl"))
     14 
     15 # Write new csv file

3 frames
[/usr/lib/python3.9/json/decoder.py](https://localhost:8080/#) in raw_decode(self, s, idx)
    351         """
    352         try:
--> 353             obj, end = self.scan_once(s, idx)
    354         except StopIteration as err:
    355             raise JSONDecodeError("Expecting value", s, err.value) from None

JSONDecodeError: Unterminated string starting at: line 1 column 91 (char 90)

On this line:
lines, conversations = loadLinesAndConversations(os.path.join(corpus, "utterances.jsonl"))

Describe your environment

I just clicked on the Collab Notebook button and ran it

@HemanthSai7
Copy link
Contributor

I think the utterances.json1 file is missing a closing quotation mark in the error line. Maybe it can be fixed by adding the quotation mark and saving it.

@HemanthSai7
Copy link
Contributor

Hello, I think they have fixed the dataset since I ran the code without any issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants