# Frame-Finder
<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->
## Install
``` sh
pip install framefinder
```
## How to use
``` python
import matplotlib.pyplot as plt
import pandas as pd
plt.rcParams['figure.dpi'] = 60
```
``` python
from framefinder import examples
```
``` python
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()
```
![](index_files/figure-commonmark/cell-4-output-1.png)
``` python
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()
```
![](index_files/figure-commonmark/cell-5-output-1.png)
``` python
from framefinder import framestructure
fs = framestructure.FramingStructure("Iseratho/model_parse_xfm_bart_base-v0_1_0")
fs.visualize(fs(examples.example_list))
plt.show()
```
![](index_files/figure-commonmark/cell-6-output-1.png)
Raw data
{
"_id": null,
"home_page": "https://github.com/Iseratho/framefinder",
"name": "framefinder",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "nbdev jupyter notebook python",
"author": "Markus Reiter-Haas",
"author_email": "iseratho@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/1c/90/00a39b04843b05c781f5834d7323fbb13cc2d05ed4c76dac2e11a4d3e4a4/framefinder-0.0.2.tar.gz",
"platform": null,
"description": "# Frame-Finder\n\n<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->\n\n## Install\n\n``` sh\npip install framefinder\n```\n\n## How to use\n\n``` python\nimport matplotlib.pyplot as plt\nimport pandas as pd\nplt.rcParams['figure.dpi'] = 60\n```\n\n``` python\nfrom framefinder import examples\n```\n\n``` python\nfrom framefinder import framelabels\n\nfl = framelabels.FramingLabels(\"facebook/bart-large-mnli\", examples.candidate_labels)\nres = pd.DataFrame(fl(examples.example_list))\nfl.visualize(res.mean().to_dict(), xerr=res.sem())\nplt.show()\n```\n\n![](index_files/figure-commonmark/cell-4-output-1.png)\n\n``` python\nfrom framefinder import framedimensions\n\nfd = framedimensions.FramingDimensions(\"all-mpnet-base-v2\", examples.dimensions, examples.pole_names)\nfd.visualize(pd.DataFrame(fd(examples.example_list)))\nplt.show()\n```\n\n![](index_files/figure-commonmark/cell-5-output-1.png)\n\n``` python\nfrom framefinder import framestructure\n\nfs = framestructure.FramingStructure(\"Iseratho/model_parse_xfm_bart_base-v0_1_0\")\nfs.visualize(fs(examples.example_list))\nplt.show()\n```\n\n![](index_files/figure-commonmark/cell-6-output-1.png)\n",
"bugtrack_url": null,
"license": "Apache Software License 2.0",
"summary": "",
"version": "0.0.2",
"project_urls": {
"Homepage": "https://github.com/Iseratho/framefinder"
},
"split_keywords": [
"nbdev",
"jupyter",
"notebook",
"python"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "77b703ff67e4a5507375f2997f3b27ac0746823133d85d6f2779f69d61548639",
"md5": "27e318402ec5920e23c93ce0cd9e73ab",
"sha256": "fe2942361528535189cea5e5bb3dc87b7eb591b49a1d7c13b048189d15000f0b"
},
"downloads": -1,
"filename": "framefinder-0.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "27e318402ec5920e23c93ce0cd9e73ab",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 9177,
"upload_time": "2023-12-04T15:12:06",
"upload_time_iso_8601": "2023-12-04T15:12:06.301103Z",
"url": "https://files.pythonhosted.org/packages/77/b7/03ff67e4a5507375f2997f3b27ac0746823133d85d6f2779f69d61548639/framefinder-0.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "1c9000a39b04843b05c781f5834d7323fbb13cc2d05ed4c76dac2e11a4d3e4a4",
"md5": "44c7634b611ecafbe03bda31992b4655",
"sha256": "900a58809b86b350c062367d54738b8281831e3dcc4cf76d85742b52608bdd2d"
},
"downloads": -1,
"filename": "framefinder-0.0.2.tar.gz",
"has_sig": false,
"md5_digest": "44c7634b611ecafbe03bda31992b4655",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 8929,
"upload_time": "2023-12-04T15:12:08",
"upload_time_iso_8601": "2023-12-04T15:12:08.405176Z",
"url": "https://files.pythonhosted.org/packages/1c/90/00a39b04843b05c781f5834d7323fbb13cc2d05ed4c76dac2e11a4d3e4a4/framefinder-0.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-12-04 15:12:08",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Iseratho",
"github_project": "framefinder",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "framefinder"
}