Eu abrir pelo colab e deu certo , mas no Jupyter apareceu a seguinte mensagem:
with open("artigos.txt", "r") as f: artigos = f.read() print(artigos[:500])
UnicodeDecodeError Traceback (most recent call last) in 1 with open("artigos.txt", "r") as f: ----> 2 artigos = f.read() 3 print(artigos[:500])
~\anaconda3\lib\encodings\cp1252.py in decode(self, input, final) 21 class IncrementalDecoder(codecs.IncrementalDecoder): 22 def decode(self, input, final=False): ---> 23 return codecs.charmap_decode(input,self.errors,decoding_table)[0] 24 25 class StreamWriter(Codec,codecs.StreamWriter):
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 24719: character maps to