Skip to content

Commit

Permalink
Merge branch 'testing' of ssh://github.com/DARIAH-DE/Topics into testing
Browse files Browse the repository at this point in the history
  • Loading branch information
severinsimmler committed Jul 2, 2018
2 parents 0631920 + 91c7df1 commit c48790e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dariah_topics/preprocessing.py
Expand Up @@ -729,7 +729,7 @@ def _create_large_corpus_model(tokenized_corpus, document_labels):

for document_id in range(1, len(multi_index.levels[0]) + 1):
for type_id in [val[1] for val in index_iterator[document_id]]:
document_term_matrix.set_value((document_id, type_id), 0, int(bag_of_words[document_id][type_id]))
document_term_matrix.at[(document_id, type_id), 0] = int(bag_of_words[document_id][type_id])
return document_term_matrix, document_ids, type_ids


Expand Down

0 comments on commit c48790e

Please sign in to comment.