Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Source Code/HDT.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ def update_pvs(word, pv, id, word_count_dict, word_pv_dict, min_pv_dict, max_pv_
articlepv = list()
sum_pv = 0
ID = 0
in_file = open("HDTdata4.txt", "r")
in_file = open("HDTdata4.txt", "r", encoding="latin-1") # Specify the correct encoding



for line in in_file:
if ID == 0: # excluding first line as it is header
Expand Down