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
1
vote
2 answers

AllenNlp QA Application produces Spacy warning: [WARNING] [W108] for every word in the document

I have created a simple Question Answering application with AllenNlp. It used to run smoothly with no warnings, but now, for every token in the passage, this spacy warning is printed in the console: [WARNING] [W108] The rule-based lemmatizer did not…
1
vote
1 answer

Pip is uninstalling pytorch built from source when i use 'pip install '. Is there a way?

I needed to build pytorch from source in order to use the latest cuda toolkit - hence I did that. My environment is a conda enviornment. The package I am trying to install is allennlp. Pip list is not showing torch installed, conda is showing it…
tzharg
  • 313
  • 2
  • 11
1
vote
1 answer

AllenNLP: HEAD request failed for url with status code 404 - open information extraction

Running the training command from open information extraction demo fails with the following error message: OSError: HEAD request failed for url…
Mim
  • 33
  • 5
1
vote
1 answer

AllenNLP 2.0: Can't get FBetaMultiLabelMeasure to run

I would like to compute the f1-score for a classifier trained with allen-nlp. I used the working code from a allen-nlp guide, which computed accuracy, not F1, so I tried to adjust the metric in the code. According to the documentation,…
sinaj
  • 129
  • 1
  • 1
  • 10
1
vote
1 answer

why the new version of allennlp's datasetloader doesn't have the __add__ method?

is it canceled? then how can I add two dataset for build a vocab? in allennlp1.0, I can do reader = StanfordSentimentTreeBankDatasetReader() train_dataset = reader.read('train.txt') dev_dataset = reader.read('dev.txt') for inst in train_dataset +…
he peter
  • 11
  • 1
1
vote
1 answer

Is it possible to install python package AllenNLP on RPi4?

Is it already possible to install AllenNLP on Raspbian? I can install AllenNLP on Windows 10 Python 64 bit, but not yet on a RPi4. I've already tried to install AllenNLP via Miniconda, pip and docker but none worked out for me. Reference readme of…
Lennert1
  • 11
  • 2
1
vote
1 answer

How to use Allen NLP interpret on custom models

I wish to use Allen NLP Interpret for integrated visualization and Saliency mapping.on custom transformer model, can you please tell me how to do that?
1
vote
1 answer

AllenNLP Semantic Role Labeler - Argument Annotations

for the AllenNLP Semantic Role Labeling implementation, how do the Argument annotations get applied like what is shown in the demo? When I run the code from my local implementation I see the verbs and description, but not the annotations? I must be…
scarpacci
  • 8,957
  • 16
  • 79
  • 144
1
vote
1 answer

How to use Bart with PretrainedTransformerEmbedder?

if i use encoder = PretrainedTransformerEmbedder(model_name, sub_module="encoder") as the encoder to pass to Bart(encoder=encoder), it reports error because it doesn't implement get_input_dim(), if i pass encoder =…
1
vote
0 answers

AllenNLP SRL: Is it possible to get sense info for a lemma?

I'm using AllenNLP for SRL, but the output doesn't provide role information / frame info / lemmas for the verb. All of that would be helpful. I see that this information seems to exist here: on the models github, but I'm not sure if it's accessible…
synchronizer
  • 1,955
  • 1
  • 14
  • 37
1
vote
1 answer

No Fine-Tune/ Bert_token_embedder module inside Allennlp commands or token_embedders

I have been working on a github project from here: https://github.com/jiacheng-xu/DiscoBERT According to the authors, it requires Allennlp 0.9.0. I created a virtual environment using pip and tried installing 0.9, but it gave an error. So, I tried…
user3430220
  • 31
  • 1
  • 3
1
vote
1 answer

Giving pretokenized input to sentiment classifier

I am using the sentiment classifier in python according to this demo. Is it possible to give pre-tokenized text as input to the predictor? I would like to be able to use my own custom tokenizer.
1
vote
1 answer

AllenNLP fails on "to be" sentences. Something Broke along the Way

Simple sentences involving the verb, "is" return no results for semantic role labeling, either via the demo page or by using AllenNLP in Python3.8 with the latest November Bert base model. For example, "I am here." returns nothing. In…
synchronizer
  • 1,955
  • 1
  • 14
  • 37
1
vote
1 answer

AllenNLP Torch Version Unavailable

I am trying to install allennlp via pip on the latest version of macOS Catalina. The Python version is 3.9.0. The pip version is 20.2.4. I was just able to install only a couple of weeks ago, but now I receive the following error when I run the…
synchronizer
  • 1,955
  • 1
  • 14
  • 37
1
vote
1 answer

Is there any other validation metrics for trainer?

I use the seq2seq model and it can compute BLEU score (a NMT score) every epoch. However, I cannot set BLEU score as validation metric so it cannot early stop in training. I read the source code, but there are no hints as to what kind of string…
qiuyuan
  • 189
  • 1
  • 4