Open ahalterman opened 5 years ago
It seems from the test code that every time that
Profile.main()
gets called, once it gets toSentenceExtraction_test
, it reloads the MITIE/Stanford model, which is obviously very, very slow. Am I reading that right? Is there either a way to pass a list of stories intoProfile.main()
? If not, it seems like it would make sense to load the NER once insideProfile.main()
and pass it intoSentenceExtraction_test
with each sentence (same as the embedding model). Does that make sense? Am I missing an option?
You are right. Thanks for mention it here. I will change it.
It seems from the test code that every time that
Profile.main()
gets called, once it gets toSentenceExtraction_test
, it reloads the MITIE/Stanford model, which is obviously very, very slow. Am I reading that right? Is there either a way to pass a list of stories intoProfile.main()
? If not, it seems like it would make sense to load the NER once insideProfile.main()
and pass it intoSentenceExtraction_test
with each sentence (same as the embedding model). Does that make sense? Am I missing an option?