Accepted for publication at CHIIR'24 Preprint available at: Arxiv
pip install framefinder
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()