2017-08-11 1 views

Répondre

0

Avant cette ligne:

raw = doc_a.lower() #instead of 'doc_a' i want my text file as input 
Code

ajouter pour lire doc_a de votre fichier, comme ceci:

with open(r'path_to\my_text_file.txt', 'r') as input: 
    doc_a = input.read() 

puis continuer avec et tokenizing en minuscules.