Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Norwegian Sentiment analysis #3

Open
fatimaaaaaaa opened this issue Jul 14, 2023 · 2 comments
Open

Norwegian Sentiment analysis #3

fatimaaaaaaa opened this issue Jul 14, 2023 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@fatimaaaaaaa
Copy link

Hi,

How can I use NorBERT for sentiment analysis in Norwegian? Is there a pre-trained model out there or do I have to train it myself using the Norwegian review corpus?

@akutuzov akutuzov added the question Further information is requested label Jul 16, 2023
@akutuzov
Copy link
Member

Hi,
Some models are available here
@liljao and @erikve might know more.

@fatimaaaaaaa
Copy link
Author

Hi @akutuzov, thanks for replying.

I tried to run the example in the readme of the ltgoslo/ssa-perin model and get an unexpected output:

['Negative', 'Source', 'Target', 'Positive']
Some weights of the model checkpoint at models\encoder were not used when initializing BertModel: ['cls.seq_relationship.bias', 'cls.seq_relationship.weight', 'cls.predictions.transform.dense.weight', 'cls.predictions.transform.dense.bias', 'cls.predictions.decoder.weight', 'bert.pooler.dense.bias', 'cls.predictions.transform.LayerNorm.bias', 'cls.predictions.decoder.bias', 'bert.pooler.dense.weight', 'cls.predictions.bias', 'cls.predictions.transform.LayerNorm.weight']
- This IS expected if you are initializing BertModel from the checkpoint of a model trained on another task or with another architecture (e.g. initializing a BertForSequenceClassification model from a BertForPreTraining model).
- This IS NOT expected if you are initializing BertModel from the checkpoint of a model that you expect to be exactly identical (initializing a BertForSequenceClassification model from a BertForSequenceClassification model).
C:\Users\ssa-perin\data\field\basic_field.py:10: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad_(True), rather than torch.tensor(sourceTensor).
  tensor = torch.tensor(example, dtype=torch.long, device=device)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants