Pasquale Minervini

Results 18 issues of Pasquale Minervini

Hello, here's a pull request for integrating `CQD` in the project. All CQD-related code is encapsulated in the `cqd` package. You can see the modifications in the "Files changed" tab...

I was checking the `BagOne` class, and on this line: https://github.com/thunlp/OpenNRE/blob/0acd945d9fc94761a10e721af385c7cdb9e55997/opennre/model/bag_one.py#L46 the method `sentence_encoder.tokenizer` was being used in this way: `token, pos1, pos2, mask = self.sentence_encoder.tokenize(item)` However, aren't the position...

question

This causes issues when normalising etc. https://github.com/uclmr/jack/blob/master/jack/readers/classification/shared.py#L229 I will extend this to allow an optional alternative behavior, where the word's hash is used as a seed for generating a random...

Write unit tests inspired by "How to unit test machine learning code" [1] [1] https://medium.com/@keeper6928/how-to-unit-test-machine-learning-code-57cf6fd81765

some changes to make the service work properly with `mvn exec:java`

This is easy to fix; I will submit a pull request ASAP. ```bash Traceback (most recent call last): [..] out = model.generate( TypeError: PeftModelForSeq2SeqLM.generate() takes 1 positional argument but 2...

Now doing some unit tests to check whether everything is in order Repo: https://github.com/RUCAIBox/HaluEval Paper: https://arxiv.org/abs/2305.11747 (EMNLP 2023)

As the title says -- I've tried copying the definition of `squadv2` (which is defined by a `task.py` file) in another folder, registering it under another name, and importing that...

bug

Small snippet to reproduce the problem: ```python #!/usr/bin/env python3 # -*- coding: utf-8 -*- import os import evaluate from datasets import load_dataset os.environ["TOKENIZERS_PARALLELISM"] = "false" perplexity = evaluate.load("perplexity", module_type="metric") print('Loading...