简体   繁体   English

Python:如何将经过训练和腌制的NLTK标记器加载和使用到GAE?

[英]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). 我有一个训练有素的腌制NLTK标记器(Brill的基于规则的转换标记器)。 I want to use it on GAE. 我想在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. 如果您的NLTK标记代码和数据的大小有限,则将其与您的GAE代码一起携带。

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. 如果您必须对它进行操作以重新训练该集合,则可以选择将文件内容作为BLOB in the datastore ,以便进行获取,分析,重新训练和放置,但这将限制数据项的大小为由于GAE硬限制,小于1 MB。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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