Giter VIP home page Giter VIP logo

finchina-sa's Introduction

FinChina SA

The FinChina SA dataset and code from FinLLM@IJCAI'23 paper:

Chinese Fine-Grained Financial Sentiment Analysis with Large Language Models

https://arxiv.org/abs/2306.14096

Code

First, the data needs to be processed into a conversational form like this:

{
    "conversations":[
        {
            "from":"human",
            "value":"question"
        },
        {
            "from":"gpt",
            "value":"answer"
        }
    ]
}

The code is in the src folder and you need to modify the configuration in the shell script.

Fine-tune

To fine-tune the model:

sh sft.sh

Inference

To run inference:

sh run_infer.sh

Our experiments is based on the following repo:

Thanks for their efforts to make the code and model weights public.

Citation

If you find this project useful, please cite it using the following format

@article{lan2023chinese,
  title={Chinese Fine-Grained Financial Sentiment Analysis with Large Language Models},
  author={Lan, Yinyu and Wu, Yanru and Xu, Wang and Feng, Weiqiang and Zhang, Youhao},
  journal={arXiv preprint arXiv:2306.14096},
  year={2023}
}

finchina-sa's People

Contributors

yerayl avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.