No project description provided
Project description
Frame-Finder
Install
pip install framefinder
How to use
import matplotlib.pyplot as plt
import pandas as pd
plt.rcParams['figure.dpi'] = 60
from framefinder import examples
from framefinder import framelabels
fl = framelabels.FramingLabels("facebook/bart-large-mnli", examples.candidate_labels)
res = pd.DataFrame(fl(examples.example_list))
fl.visualize(res.mean().to_dict(), xerr=res.sem())
plt.show()
from framefinder import framedimensions
fd = framedimensions.FramingDimensions("all-mpnet-base-v2", examples.dimensions, examples.pole_names)
fd.visualize(pd.DataFrame(fd(examples.example_list)))
plt.show()
from framefinder import framestructure
fs = framestructure.FramingStructure("Iseratho/model_parse_xfm_bart_base-v0_1_0")
fs.visualize(fs(examples.example_list))
plt.show()
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
framefinder-0.0.2.tar.gz
(8.9 kB
view details)
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 framefinder-0.0.2.tar.gz.
File metadata
- Download URL: framefinder-0.0.2.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
900a58809b86b350c062367d54738b8281831e3dcc4cf76d85742b52608bdd2d
|
|
| MD5 |
44c7634b611ecafbe03bda31992b4655
|
|
| BLAKE2b-256 |
1c9000a39b04843b05c781f5834d7323fbb13cc2d05ed4c76dac2e11a4d3e4a4
|
File details
Details for the file framefinder-0.0.2-py3-none-any.whl.
File metadata
- Download URL: framefinder-0.0.2-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe2942361528535189cea5e5bb3dc87b7eb591b49a1d7c13b048189d15000f0b
|
|
| MD5 |
27e318402ec5920e23c93ce0cd9e73ab
|
|
| BLAKE2b-256 |
77b703ff67e4a5507375f2997f3b27ac0746823133d85d6f2779f69d61548639
|