1 option
How to use large-language models for text analysis / Petter Törnberg.
- Format:
- Book
- Author/Creator:
- Törnberg, Petter, author.
- Language:
- English
- Subjects (All):
- Text data mining--Case studies.
- Text data mining.
- Populism in mass media--Research--Case studies.
- Populism in mass media.
- Physical Description:
- 1 online resource
- Place of Publication:
- London : SAGE Publications Ltd, 2024.
- Summary:
- This guide introduces large-language models (LLM) as a highly versatile text-analysis method within the social sciences. As LLMs are easy to use, cheap, fast, and applicable to a broad range of text-analysis tasks, ranging from text annotation and classification to sentiment analysis and critical discourse analysis. Many scholars believe that LLMs will transform how we do text analysis. This how-to guide is aimed at students and researchers with limited programming experience and offers a simple introduction to how LLMs can be used for text analysis in your own research project, as well as how to think about LLMs as a research method, and advice on best practices. I go through each of the steps of analyzing textual data with LLMs using Python: installing the software, setting up the application programming interface (API), loading the data, developing an analysis prompt, analyzing the text, and validating the results. As an illustrative example, I will use the challenging task of identifying populism in political texts and show how LLMs move beyond the existing state of the art.
- Notes:
- Description based on XML content.
- ISBN:
- 1-5296-8370-X
- 9781529683707
- OCLC:
- 1418723285
The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.