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 hashes)
Built Distribution
Close
Hashes for framefinder-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe2942361528535189cea5e5bb3dc87b7eb591b49a1d7c13b048189d15000f0b |
|
MD5 | 27e318402ec5920e23c93ce0cd9e73ab |
|
BLAKE2b-256 | 77b703ff67e4a5507375f2997f3b27ac0746823133d85d6f2779f69d61548639 |