textcat -> architecture extra fields not permitted
維護者通常 5 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 30/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- python
研究方向
從 issue 中連結的情感分析教學,以及使用 nlp.create_pipe("textcat", config={"architecture": "simple_cnn"}) 和 textcat.add_label 的程式碼行開始。檢查教學預期的 spaCy 版本,並與產生 ConfigValidationError 的版本進行比對。完成的標準是範例能在不出現額外欄位錯誤的情況下執行,且標籤呼叫對受支援的版本有效。
由索引模型根據 Issue 內容生成。
描述
Good evening sir,
I've been trying to practise what I've learned from your tutorial:(https://realpython.com/sentiment-analysis-python/) using PyCharm.
And these lines:
textcat.add_label("pos")
textcat.add_label("neg")
generated a warning ==>
#Cannot find reference 'add_label' in '(Doc) -> Doc | (Doc) -> Doc'
I thought it maybe because of a difference between my spacy version and yours, so I run the script anyway, but then I got the an error from this line==>
textcat = nlp.create_pipe("textcat", config={"architecture": "simple_cnn"})
Error msg:
raise ConfigValidationError(
thinc.config.ConfigValidationError:
Config validation error
textcat -> architecture extra fields not permitted
{'nlp': <spacy.lang.en.English object at 0x0000015E74F625E0>, 'name': 'textcat', 'architecture': 'simple_cnn', 'model': {'@architectures': 'spacy.TextCatEnsemble.v2', 'linear_model': {'@architectures': 'spacy.TextCatBOW.v1', 'exclusive_classes': True, 'ngram_size': 1, 'no_output_layer': False}, 'tok2vec': {'@architectures': 'spacy.Tok2Vec.v2', 'embed': {'@architectures': 'spacy.MultiHashEmbed.v1', 'width': 64, 'rows': [2000, 2000, 1000, 1000, 1000, 1000], 'attrs': ['ORTH', 'LOWER', 'PREFIX', 'SUFFIX', 'SHAPE', 'ID'], 'include_static_vectors': False}, 'encode': {'@architectures': 'spacy.MaxoutWindowEncoder.v2', 'width': 64, 'window_size': 1, 'maxout_pieces': 3, 'depth': 2}}}, 'threshold': 0.5, '@factories': 'textcat'}
I'm very new to spacy and data analysis over all, so please excuse me if it's a stupid mistake from my side.
Thank you
- 主要語言
- Jupyter Notebook
- 星號
- 5.2k
- 分支
- 5.3k
- 平均合併
- 5 天 4 小時
- 30 天內合併 PR
- 15
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 沒有貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
realpython/materials 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 68/100
realpython/materials#729 ·
維護者通常 5 天內回覆
-
п未關閉
難度 5/5 一週以上 新手友好度 1/100
realpython/materials#763 ·
維護者通常 5 天內回覆
-
難度 1/5 1 小時以內 新手友好度 55/100
realpython/materials#738 ·
維護者通常 5 天內回覆
-
難度 1/5 1 小時以內 新手友好度 45/100
realpython/materials#737 ·
維護者通常 5 天內回覆
-
проект2未關閉
難度 5/5 一週以上 新手友好度 15/100
realpython/materials#725 ·
維護者通常 5 天內回覆
查看 realpython/materials 的全部 Issue
相似的 Issue
-
area:ai-suggestions bug P2
難度 2/5 1-3 小時 新手友好度 84/100
uttrflow/uttrflow-swift#5115 ·
維護者通常 1 天內回覆
-
Zero-token evaluations are treated as missing cost in selection可能已有人在做 @sylvesterkaczmarek 於 1 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 76/100
google-research/rrsi#6 ·
-
難度 1/5 1 小時以內 新手友好度 85/100