Skip to content

Commit

Permalink
Merge pull request #107 from dod-advana/hotfix/merge_conf
Browse files Browse the repository at this point in the history
merge conflict
  • Loading branch information
JaredJRoss authored Mar 10, 2022
2 parents c83238e + 9751a70 commit c694c29
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions gamechangerml/src/text_handling/corpus.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import os
import json
import threading

# import pandas as pd
from gensim.models.doc2vec import TaggedDocument
from gamechangerml.src.text_handling.process import preprocess, get_tokenizer
Expand Down Expand Up @@ -40,7 +41,10 @@ def __iter__(self):
total = len(self.file_list)
progress = 0
processmanager.update_status(
processmanager.loading_corpus, progress, total,thread_id=threading.current_thread().ident
processmanager.loading_corpus,
progress,
total,
thread_id=threading.current_thread().ident,
)
for file_name in iterator:
try:
Expand Down Expand Up @@ -68,11 +72,10 @@ def __iter__(self):
yield tokens
progress += 1
processmanager.update_status(
<<<<<<< HEAD
processmanager.loading_corpus, progress, total
=======
processmanager.loading_corpus, progress, total,thread_id=threading.current_thread().ident
>>>>>>> bae99ae... updated how processes are stored to have multiple of the same type
processmanager.loading_corpus,
progress,
total,
thread_id=threading.current_thread().ident,
)
except Exception as e:
print(e)
Expand Down

0 comments on commit c694c29

Please sign in to comment.