[英]SpaCy Coreferee: How to cleanly extract coreferenced text
我正在使用 SpaCy coreferee 插件。 執行非常簡單: 我遇到的問題是如何將共指群集 map 返回到文本並返回共指文本。 我想我會以某種方式需要遍歷doc中的所有標記,並檢查它們是否可以用共指集群映射和解決。 我對 SpaCy 的經驗很少,所以我真的不知道實現這一目標的最佳途徑是什么。 ...
[英]SpaCy Coreferee: How to cleanly extract coreferenced text
我正在使用 SpaCy coreferee 插件。 執行非常簡單: 我遇到的問題是如何將共指群集 map 返回到文本並返回共指文本。 我想我會以某種方式需要遍歷doc中的所有標記,並檢查它們是否可以用共指集群映射和解決。 我對 SpaCy 的經驗很少,所以我真的不知道實現這一目標的最佳途徑是什么。 ...
[英]Allennlp Does not generate model.tar.gz after training
我正在用 Alennlp 訓練一個共指分辨率 model。 但是,在我執行命令train_data_path=<train path> validation_data_path=<dev path> test_data_path=<testpath> datas ...
[英]OOM issues with AllenNLP coreference resolution training and substituting models
我有幾個關於訓練和評估 AllenNLP 的共指解析模型的問題。 對於應該使用哪些 GPU 進行訓練,是否有任何限制/規范? 我在具有 24220 MiB 內存的 Titan RTX GPU 上進行訓練的中途遇到了 OOM 問題。 是否有任何我可以更改的參數可能會有所幫助(注意:我使用的是BE ...
[英]Replace bidirectional LSTM with GRU in coref?
我正在使用來自 bert_lstm.jsonnet 的模板配置來訓練 Allennlp 的從粗到細的共指模型(對於英語以外的其他語言)。 當我將上下文層的類型“lstm”替換為“gru”時,它可以工作,但似乎對訓練的影響很小。 每個 epoch 消耗相同的 63 GB RAM,驗證 f1-score ...
[英]Information about Embeddings in the Allen Coreference Model
我是一名接近 NLP 世界的意大利學生。 首先,我要感謝您對論文“Higher-order Correference Resolution with Coarse-to-fine Inference”所做的出色工作。 我正在使用 allennlp 庫提供的 model,我有兩個問題要問你。 在ht ...
[英]How to interpret Allen NLP Coreference resolution model output?
我正在致力於從文本(多個句子)中提取人員和任務,並且需要一種方法來解決指代問題。 我找到了這個 model ,它看起來很有前途,但是一旦我安裝了所需的庫allennlp和allennlp_models並為自己測試了 model 我得到: 腳本: Output: 我無法解釋這個 output 的格 ...
[英]Has anyone done training on custom data using AllenNLP for coreference resolution?
我正在嘗試在自定義數據上訓練 AllenNLP,而不是使用預訓練模型進行共指解析。 說明在這里,但它們非常模糊,我不確定如何進行,特別是我不知道如何修改 JSONNET 文件以指示我的訓練、測試和開發 ConLL-2012 訓練文件的路徑。 有沒有人以前完成過這個? 非常感謝。 ...
[英]AllenNLP predictor object loading before it is called -- rest of the script hangs
背景我正在做一個項目,我需要對大量文本進行共指解析。 在這樣做的過程中,我涉足 NLP 世界並找到了 AllenNLP 的 coref model。 一般來說,我有一個腳本,我使用 pandas 加載要解析的“文章”數據集,並將這些文章傳遞給predictor.from_path() object ...
[英]Is there a code to perform coreference resolution in AllenNLP in Python?
Python中是否有AllenNLP執行共指消解的代碼? 不幸的是,inte.net 上的現有代碼示例似乎無法正常工作。 ...
[英]Unable to install neuralcoref : Coreference Resolution in spaCy with Neural Networks
我正在嘗試使用pip install neuralcoref 。 我已經安裝了 spaCy vesrion 3.0.6 和 Visual Studio Build Tools 版本 16.9.5,但是,在運行pip install neuralcoref時我仍然收到此錯誤: 我還嘗試重新安裝 Vis ...
[英]How to resolve coreferences without Internet using AllenNLP and coref-spanbert-large?
想要在沒有 Internet 的情況下使用 AllenNLP 和 coref-spanbert-large model 解決共指。 我嘗試按照此處描述的方式進行https://demo.allennlp.org/coreference-resolution 我的代碼: 當我可以訪問互聯網時,代碼可 ...
[英]Trying to train AllenNLP coreference resolution model on ontonotes: gets CUDA out of memory
I'm trying to train AllenNLPs coreference model on a 16GB GPU, using this config file: https://github.com/allenai/allennlp-models/blob/main/training ...
[英]Replace personal pronoun with previous person mentioned (noisy coref)
我想做一個嘈雜的解決方案,以便給定一個人稱代詞,該代詞被前一個(最近的)人取代。 例如: Alex is looking at buying a UK startup for $1 billion. He is very confident that this is going to happen ...
[英]Changing a Noun to its Pronoun in a sentence
我想用代詞替換句子中的名詞。 我將使用它為 NLP 任務創建數據集。 例如,如果我的句子是 --> “傑克和瑞恩是朋友。傑克也是米歇爾的朋友。” 然后我想用“他”替換第二個傑克(斜體和粗體)。 我已經完成了詞性標注以在我的句子中找到名詞。 但我不知道如何從這里開始。 如果我有一個可 ...
[英]en_coref_lg model in spacy
嗨,我正在嘗試在 python 中使用一個簡單的 coref 解析代碼作為 它顯示以下錯誤: 如果我嘗試安裝en_coref_lg使用python -m spacy download en_coref_lg話,就說明 我該怎么辦 ? ...
[英]Which coreference chains does each sentence relate to in NeuralCoref?
我正在使用神經核來解決文本中的共指解析任務。 我想知道每個句子都提到了哪些共指集群。 例如,sentence1 有來自共指集群 1 和 4 的提及; 第 2 句提到了共指集群 10、14。 我怎樣才能做到這一點? ...
[英]How to use neuralcoref in Spacy
我一直在嘗試使用庫神經核:基於神經網絡和neuralcoref的最先進的共指解析。 我在 conda 1.9.7 和 Spacy 2.2.4 中使用 Ubuntu 16.04、Python 3.7.3。 我的代碼(來自https://spacy.io/universe/project/neuralc ...
[英]Understanding and using Coreference resolution Stanford NLP tool (in Python 3.7)
我試圖了解 Coreference NLP 斯坦福工具。 這是我的代碼,它正在工作: 我嘗試了三種算法: 統計(如上面的代碼)。 結果: 神經 確定性(我得到下面的錯誤) 問題: 為什么我會遇到確定性錯誤? 在 Python 中使用 NLP 斯坦福的任何代碼似乎都比與 Spacy 或 NLTK 相 ...
[英]NLP: Resolve coreference pronoun in blocks
我計划在書籍語料庫上執行我的 NLP 管道。 由於解析共同引用是一個密集的過程,我將無法一次處理整本書甚至一整章。 我計划將文本分成相當大的塊來解決共指問題。 我需要幫助的問題是, Group2詞所引用的名詞位於Group1時,我將如何解析來自Group2代詞。 有沒有辦法將依賴項從Group1播 ...