Can not import finbert model
Hi, I am trying to import finbert module but i have gotten "ModuleNotFoundError: No module named ‘finbert.finbert’ "  Is there anyone to help about this issue, please?
2022-01-31T14:10:20Z
Hi Ayse - can you share the code that led to the error message you mentioned?And I’m wondering whether you have tried the code example from the model website on the HF Model Hub?yiyanghkust/finbert-tone · Hugging FaceI just ran this and it seems to work fine.CheersHeiko
2022-01-31T14:34:46Z
Hi, I am trying to run this part of the code:from pathlib import Pathimport shutilimport osimport loggingimport syssys.path.append(’…’)from textblob import TextBlobfrom pprint import pprintfrom sklearn.metrics import classification_reportfrom transformers import AutoModelForSequenceClassificationfrom finbert.finbert import *import finbert.utils as tools%load_ext autoreload%autoreload 2project_dir = Path.cwd().parentpd.set_option(‘max_colwidth’, -1)And i am getting this error :ModuleNotFoundError: No module named ‘finbert.finbert’                                                           Although I have install finbert-embedding on the Anaconda prompt .thanks, AyseAlso you can find full version of the code on this path :finBERT/finbert_training.ipynb at master · ProsusAI/finBERT · GitHub
2022-01-31T14:40:06Z
Hi,I am trying to run this part of the code:from pathlib import Pathimport shutilimport osimport loggingimport syssys.path.append(’…’)from textblob import TextBlobfrom pprint import pprintfrom sklearn.metrics import classification_reportfrom transformers import AutoModelForSequenceClassificationfrom finbert.finbert import *import finbert.utils as tools%load_ext autoreload%autoreload 2project_dir = Path.cwd().parentpd.set_option(‘max_colwidth’, -1)But I get this error :ModuleNotFoundError: No module named ‘finbert.finbert’I have imported to finbert-embedding also, but i can not run the code.You can find full part of the code on this path:github.comProsusAI/finBERT/blob/master/notebooks/finbert_training.ipynb{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# FinBERT Example Notebook\n",
    "\n",
    "This notebooks shows how to train and use the FinBERT pre-trained language model for financial sentiment analysis."
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Modules "
   ]
  },
  {
   "cell_type": "code",This file has been truncated.show originalthanks, Ayse
2022-01-31T21:14:02Z
Two quick questions on this:Did you clone the finbert repo to your local environment?Any reason why you wouldn’t want to use the code fromyiyanghkust/finbert-tone · Hugging Face?CheersHeiko