Add your description here
Project description
Stance Target Mining
A tool for mining stance targets from a corpus of documents.
Installation
pip install git+https://github.com/bendavidsteel/stancemining.git
To get stance targets and stance from a corpus of documents
import stancemining
model = stancemining.StanceMining()
document_df = model.fit_transform(docs)
target_info_df = model.get_target_info()
To get stance target, stance, and stance trends from a corpus of documents
import stancemining
model = stancemining.StanceMining()
document_df = model.fit_transform(docs)
trend_df = stancemining.get_stance_trends(document_df)
To deploy stancemining app
docker compose up
To reproduce experimental results
Rename ./config/config_default.yaml to ./config/config.yaml and set the parameters in the file.
Run:
python ./experiments/scripts/main.py
You may need to setup a WanDB project. Run
python ./experiments/scripts/get_results.py
To have the metrics written to a latex table saved as a tex file.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stancemining-0.1.0.tar.gz.
File metadata
- Download URL: stancemining-0.1.0.tar.gz
- Upload date:
- Size: 34.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e6c563b2ab78dc54989229cd7d740dd7516364e123e7797f4c34a0f792127cc
|
|
| MD5 |
e0179baa353c0c943ebd7db69d63a65f
|
|
| BLAKE2b-256 |
0406a613db6ce7f32b0562921b364410695f94a567afd1abd10da6648afa12ce
|
File details
Details for the file stancemining-0.1.0-py3-none-any.whl.
File metadata
- Download URL: stancemining-0.1.0-py3-none-any.whl
- Upload date:
- Size: 51.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3decfe2e80ba2d5aa7e27e413e591ed8cc47e355472d50abe3346299a2557bc6
|
|
| MD5 |
316037e8e3fd23f1421b56fc3fc0859a
|
|
| BLAKE2b-256 |
67bc01307c04d7bbeb4967a4b36e23f05f6fcf8c3faa6808f5f3ebaca477ca7f
|