简体   繁体   中英

Python: How to load and use trained and pickled NLTK tagger to GAE?

I have a trained and pickled NLTK tagger (Brill's transformational rule-based tagger). I want to use it on GAE. What the best way to do it?

If your NLTK tagger code and data is of limited size, then carry it along with your GAE code.

If you have to act upon it to retrain the set, then storing the content of the file as a BLOB in the datastore would be an option, so that you get, analyze, retrain and put.But that will limit size of dataitem to be less than 1 MB because of GAE hardlimit.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM