
Code a Discord Chat Bot That Talks Like Your Favorite Character - Tutorial
video description
UnicodeDecodeError Traceback (most recent call last)-
in ()-
1 with open('DIO.docx', 'rt') as file:-
----> 2 for line in file.readlines():-
3 match = re.findall(pattern, line)-
4 if match:-
5 name, line = match[0]-
/usr/lib/python3.7/codecs.py in decode(self, input, final)-
320 # decode input (taking the buffer into account)-
321 data = self.buffer + input-
--> 322 (result, consumed) = self._buffer_decode(data, self.errors, final)-
323 # keep undecoded input until the next call-
324 self.buffer = data[consumed:]-
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x87 in position 10: invalid start byte
Date: 2022-03-14
Related videos
Comments and reviews: 9
Franziska
Concerning the code surrounding the -gather data- portion of the video, How would you edit the initial code surrounding the script to read scriptlines from a text that goes as follows:
-Character:
'Lines said by character'-
Since the only transcript I found was formatted this way, the character's name is on a single line, followed by a colon, and then on the -next- line is where the dialogue is. Is there anyway to get around this? The code presented in the video doesn't seem to be working considering the fact that it reads scripts that go:
-Character: 'Lines said by character'-
Thanks
reply
Concerning the code surrounding the -gather data- portion of the video, How would you edit the initial code surrounding the script to read scriptlines from a text that goes as follows:
-Character:
'Lines said by character'-
Since the only transcript I found was formatted this way, the character's name is on a single line, followed by a colon, and then on the -next- line is where the dialogue is. Is there anyway to get around this? The code presented in the video doesn't seem to be working considering the fact that it reads scripts that go:
-Character: 'Lines said by character'-
Thanks
reply
Rewind
Mind blown - I-ve been making bots with lists of pre-written text. Amazing idea to use machine learning! While I am sticking with my pre-written method for now (much more convincing results) I will be exploring your method. Thanks!!!!!!!!!!!!!!!!!!!!!
reply
Mind blown - I-ve been making bots with lists of pre-written text. Amazing idea to use machine learning! While I am sticking with my pre-written method for now (much more convincing results) I will be exploring your method. Thanks!!!!!!!!!!!!!!!!!!!!!
reply
li
Hi I'm getting this error message after running the main function
--> 409 is_pretokenized=is_split_into_words,
410 )
411
TypeError: TextEncodeInput must be Union[TextInputSequence, Tuple[InputSequence, InputSequence]]
reply
Hi I'm getting this error message after running the main function
--> 409 is_pretokenized=is_split_into_words,
410 )
411
TypeError: TextEncodeInput must be Union[TextInputSequence, Tuple[InputSequence, InputSequence]]
reply
Archangel
24:50 can't login with my huggingface username. I'm doing this from my mobile. When I type the username and press the enter key in my keyboard it's not entering. Please help me
reply
24:50 can't login with my huggingface username. I'm doing this from my mobile. When I type the username and press the enter key in my keyboard it's not entering. Please help me
reply
Multiverse
Is it okay to do this project asking as an international student in the US. Since, some bots are set to offer paid features. I want to make sure that it's okay to try this.
reply
Is it okay to do this project asking as an international student in the US. Since, some bots are set to offer paid features. I want to make sure that it's okay to try this.
reply
Ruben
instead of using a dataset from kaggle ,how to use the csv transcript file created originally by us into the model? or should we upload the csv file onto kaggle?
reply
instead of using a dataset from kaggle ,how to use the csv transcript file created originally by us into the model? or should we upload the csv file onto kaggle?
reply
Ayoub
thank you for the video, Im just wondering about the context part. I dont know how you got it and how it was used to help you train the model.
reply
thank you for the video, Im just wondering about the context part. I dont know how you got it and how it was used to help you train the model.
reply
Min
I'm having a problem with Google Colab, when I open any files with it it just shows loading and a blank white screen. shat can I do to fix it?
reply
I'm having a problem with Google Colab, when I open any files with it it just shows loading and a blank white screen. shat can I do to fix it?
reply
Tracy
Hi Lynn, when going into your kaggle account, I not the user, I don't see the 'Account' option for 'create new API token. What should I do?
reply
Hi Lynn, when going into your kaggle account, I not the user, I don't see the 'Account' option for 'create new API token. What should I do?
reply
Add a review, comment
Other channel videos















