facebookresearch / fairseq

Facebook AI Research Sequence-to-Sequence Toolkit written in Python.
MIT License
30.43k stars 6.4k forks source link

How can I use Roberta to extract (/regonize) named entities (preferably in czech, but any language would be helpful)? #2501

Closed TomasUOM closed 2 years ago

TomasUOM commented 4 years ago

❓ Questions and Help

Before asking:

  1. search the issues.
  2. search the docs.

What is your question?

I am a beginner in python and just learning about fairseq. I want to compare XLMRoberta with some other NER tools but I struggle to find the relevant command for Named Entity recognition of input/txt file. Any advice/tutorial would be much appreciated. Thanks!

Code

import torch !pip install sentencepiece xlmr = torch.hub.load('pytorch/fairseq', 'xlmr.large') xlmr.eval()

#### What have you tried? So far I went through the README on XLMRoberta as well as the pdf of the relevant paper, number of ISSUES on github and through Fairseq documentation. #### What's your environment? I use Google Colab with - sentencepiece Version (0.1.91) - fairseq Version (master I think) - PyTorch Version 1.6.0+cu101 - OS (e.g., Linux): windows 10 - How you installed fairseq (`pip`, source): !pip install fairseq - Python version: 3.6.7 - CUDA/cuDNN version: - Any other relevant information:
stale[bot] commented 3 years ago

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!

stale[bot] commented 2 years ago

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you!