NIHOPA / NLPre

Python library for Natural Language Preprocessing (NLPre)
190 stars 34 forks source link

Replace_from_dict.py optimization #4

Closed HarryBaker closed 7 years ago

HarryBaker commented 7 years ago

In replace_from_dict.py, we have a double for loop that iterates through sent in sentences and then word in keywords. In the inner loop we split the sent into tokens - I believe this can be done in the outer for loop instead.

HarryBaker commented 7 years ago

code is obsolete