semvec/pypi-packages huggingface dataset:
IsoScore 2.0.1
IsoScore is the first tool available in the literature that accurately measures isotropy in embedding space.
Requires Python: >=3.6

# IsoScore

This contains the Python3 implementation of IsoScore, which was originally
introduced in the 2022 paper by William Rudman, Nate Gillman, Taylor Rayne, and 
Carsten Eickhoff, published in the Findings of the ACL (https://aclanthology.org/2022.findings-acl.262/). 
IsoScore is the first tool available in the literature that accurately measures isotropy in embedding space. 
See the original paper for more information.

IsoScore 2.0.0 provides an updated version of IsoScore, called IsoScore*, that allows users to reliably measure 
isotropy of point clouds where the dimensionality of the point cloud is larger the number of samples. Additionally, 
IsoScore* is differentiable and can be used as a regularizer in embedding space. For details of IsoScore* and the impact
that using IsoScore* as a regularizer in fine-tuning pre-trained language models see: https://arxiv.org/abs/2305.19358  

### How to use

```
import torch
from IsoScore.IsoScore import *
```

Our pip installation has the following functions: 

- ```IsoScore(points)```: The original IsoScore function that measures isotropy of a point cloud. 
- ```IsoScore_star(points, C0, zeta)```: calculates IsoScore* of a point cloud where C0 is the shrinkage covariance matrix and zeta is the shrinkage parameter. 
- ```IsoScore_cov(cov)```: If you want to measure the isotropy of a given distribution without the need to generate samples, you can calculate IsoScore directly from the covariance matrix. 
- ```istar()```: ```torch.nn.Module``` used to implement I-STAR loss. 

### License

This project is licensed under the MIT License.
notion2medium 1.0.1
a Simple command that publishes Notion Page to Medium.
Requires Python: >=3.9,<4.0

## About Notion2Medium

[![PyPI version](https://badge.fury.io/py/notion2medium.svg)](https://badge.fury.io/py/notion2medium)
[![Code Quality](https://github.com/echo724/notion2medium/actions/workflows/code_quality.yaml/badge.svg)](https://github.com/echo724/notion2medium/actions/workflows/code_quality.yaml)

- Publish a post to **Medium** just from your **Notion Page** by **Console Cli**

## API Keys(Token)

- **Notion API Token**: create [an integration and find the token](https://www.notion.so/my-integrations). → [Learn more about authorization](https://developers.notion.com/docs/authorization).

- **Medium API Token**: create **Medium Integration** from [Medium Setting](https://medium.com/me/settings)

- Then save your api key(token) as your os **environment variable**

```Bash
$ export NOTION_TOKEN="{your integration token key}"

$ export MEDIUM_TOKEN="{your integration token key}"
```

- Or add these commands to your shell config files(`.bashrc` or `.zshrc`)

## Install

```Bash
$ pip install notion2medium
```

## `Select` Command

- Retrieves **Notion Page** list from **Notion Database**.

- Ask user titles of Notion pages and will call `publish` command to publish the selected page.

- `select` commands require either `id` or `url` of the Notion Database or Page.

```Bash
$ notion2medium select -i <Notion Database id>
```
## `Publish` Command

- Publishes a Medium Post from **Notion Page**.

- Retrieves Notion Page's **content**(children blocks) as markdown and Page's **tags**.

- `publish` commands require either `id` or `url` of the Notion Database or Page.

```Bash
$ notion2medium publish -i <Notion Page id>
```

## Donation

If you think **Notion2Medium** is helpful to you, you can support me here:

<a href="https://www.buymeacoffee.com/echo724" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 54px;" height="54"></a>

## License
[Apache License 2.0](LICENSE)