Cannot pickle a Tagger object

オープン
#8 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python

調査の方向性

Start by reading the Tagger binding and its serialization support, then check the example notebook linked in the issue to see how the object is created. Reproduce the reported Python 2 pickle error and determine what state a Tagger would need to save and restore. Done means a Tagger can be pickled and unpickled while remaining usable; the issue does not name a test file.

索引モデルが issue の本文から書いたものです。

説明

I'm unable to pickle the Tagger object. I can follow the example code given at http://nbviewer.ipython.org/github/tpeng/python-crfsuite/blob/master/examples/CoNLL%202002.ipynb, but when I try to pickle the Tagger I get the following error.

Traceback (most recent call last):
File "pcrf.py", line 127, in
pickle.dump(tagger,m)
File "/data1/wboag/clicon/venv_clicon/lib/python2.7/copy_reg.py", line 70, in _reduce_ex
raise TypeError, "can't pickle %s objects" % base.name
TypeError: can't pickle Tagger objects

主要言語
Python
スター
774
フォーク
223
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

scrapinghub/python-crfsuite のほかの issue

scrapinghub/python-crfsuite の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。