Questions tagged [allennlp]

An open-source NLP research library, built on PyTorch

An Apache 2.0 NLP research library, built on PyTorch, for developing state-of-the-art deep learning models on a wide variety of linguistic tasks.

Quick Links

210 questions
0
votes
1 answer

How often does allennlp's GradientDescentTrainer update a model?

Does GradientDescentTrainer update model at the end of each epoch ? or does it update once after a forward pass over a batch?
0
votes
1 answer

Inconsistent results with AllenNLP Reading Comprehension

We're seeing strange behavior with Reading Comprehension. Given the following people (names redacted) and their roles and contact numbers: Asking RC for PersonAfname's number results in 4444, which is correct. It also correctly returns 3333 for…
0
votes
1 answer

Semantic Role no longer tagging adjectives as Modifiers

Last October (2020) we ran some data through the Semantic Role function. With the sentence "John would like a comprehensive map of Ohio." the word comprehensive was tagged as a modifier. Now, however, it seems like none of the adjectives in our data…
0
votes
1 answer

Can't do lazy loading with allennlp

Currently I'm trying to implement lazy loading with allennlp, but can't. My code is as the followings. def biencoder_training(): params = BiEncoderExperiemntParams() config = params.opts reader = SmallJaWikiReader(config=config) #…
izuna385
  • 5
  • 2
0
votes
1 answer

Save model after each epoch - AllenNLP

Is there a parameter that I can set in the config file (maybe for the trainer?) that would save the model (archive) after each epoch or after a specific number of steps? I'm using seq2seq dataloader and "composed_seq2seq" as my model. This is how my…
Droplet
  • 23
  • 3
0
votes
2 answers

How to add training end callback to AllenNLP config file?

Currently training models using AllenNLP 1.2 and the commands api: allennlp train -f --include-package custom-exp /usr/training_config/mock_model_config.jsonnet -s test-mock-out I'm trying to execute a forward pass on a test dataset after training…
0
votes
1 answer

ImportError: cannot import name 'Ontonotes' from 'allennlp.data.dataset_readers.dataset_utils'

I'm using python 3.7 and pytorch in google colab. I installed Pip install alennlp==2.4.0 pip install allennlp-models In google colab, but when I run this code: allennlp train experiments/oie_labeler_crf.json -s…
0
votes
0 answers

Encountering type error handling when running allennlp test-install

I am using Windows 10 and pip installed the latest allennlp branch. When I successfully install the package, I encountered the following: $ allennlp test-install Traceback (most recent call last): File…
Wilson
  • 253
  • 2
  • 9
0
votes
1 answer

AllenNLP - dataset_reader config for transformers

I would like to use bert for tokenization and also indexing for a seq2seq model and this is how my config file looks like so far: { "dataset_reader": { "type": "seq2seq", "end_symbol": "[SEP]", "quoting": 3, "source_token_indexers":…
Droplet
  • 23
  • 3
0
votes
1 answer

Assertion Error while using stanford-sentiment-treebank-roberta.2021-03-11.tar.gz in ALLENNLP

I have created a virtual ubuntu machine and installed ALLENNLP, In that and tried example from ALLENNLP demo website I have executed below code from allennlp.predictors.predictor import Predictor import allennlp_models.tagging predictor =…
0
votes
1 answer

Using AllenNLP Interpret with a HuggingFace model

I would like to use AllenNLP Interpret (code + demo) with a PyTorch classification model trained with HuggingFace (electra base discriminator). Yet, it is not obvious to me, how I can convert my model, and use it in a local allen-nlp demo…
jpcorb20
  • 3
  • 2
0
votes
1 answer

file not found compile_coref_data.sh

I'm not sure what's going on in this script which is meant to download and compile some data. The download works for me but then I get an error "file not found". Should I have downloaded some other data beforehand? The data is not really important…
hes96
  • 1
0
votes
1 answer

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_config/coref/coref_spanbert_large.jsonnet I created train, test, and dev files using this script:…
0
votes
1 answer

How to use AllenNLP to implement a Decoder in seq2seq generation task?

I`m trying to realize a seq2seq generation style experiment, but i cannot find any instructions for implement a 'Decoder'. I'm using the Newest Allennlp V2.1. So,I will appreciate it if you could give me some advice!
0
votes
1 answer

How to connect AllenNLP model to Microsoft Web Chat or Microsoft Bot Framework

I need to connect AllenNLP model to Microsoft Web Chat or Microsoft Bot Framework. Is it possible? is AllenNLP provides any APIs endpoints for connecting? How do I create models and where that models are store in AllenNLP? If anyone has a good…
BhattMeet
  • 11
  • 3