Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

framefinder-0.0.2-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

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

Hashes for framefinder-0.0.2.tar.gz
Algorithm Hash digest
SHA256 900a58809b86b350c062367d54738b8281831e3dcc4cf76d85742b52608bdd2d
MD5 44c7634b611ecafbe03bda31992b4655
BLAKE2b-256 1c9000a39b04843b05c781f5834d7323fbb13cc2d05ed4c76dac2e11a4d3e4a4

See more details on using hashes here.

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

Hashes for framefinder-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fe2942361528535189cea5e5bb3dc87b7eb591b49a1d7c13b048189d15000f0b
MD5 27e318402ec5920e23c93ce0cd9e73ab
BLAKE2b-256 77b703ff67e4a5507375f2997f3b27ac0746823133d85d6f2779f69d61548639

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page