semvec/pypi-packages huggingface dataset:
fr-word-segment 0.1.3
A package that split mispelled words semantically
License: MIT
Requires Python: >3.5.2

# French word segmentation

Usually when extracting text from open source OCRs like Tesseract, we're most likely to encounter linked words duo to OCR quality extraction. 

For example :
instead of extracting **"Très bon service"**, one might get sudenlly **"Très bonservice"**. So when doing feature engineering with BOW, TFIDF or even word2vec models, the algorithm will consider that **"bonservice"** as a unique feature, while it is not.

To deal with this problem, I built a module dealing with semantic word segmentation without any predefined corpus.

## Installation

Use the package manager [pip](https://pypi.org/project/fr-word-segment/) to install fr_word_segment.

```bash
pip3 install fr-word-segment
python3 -m spacy download fr
```

## Usage

```python
from fr_word_segment import wordseg
# suppose that a french spellchecker detect this token as misspelled
token = "soitmoinscompliqué"

# apply segmentation function on the given token
result = wordseg.segment_token(token)

# show results
print("raw token is {}".format(token)) # "soitmoinscompliqué"
print("processed token is {}".format(result)) # "soit moins compliqué"
```

## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.


## License
[MIT](https://choosealicense.com/licenses/mit/)
pyonedesk 0.0.30
PyOneDesk
License: MIT
Requires Python: >=3.7
Keywords: OneDrive Web Desk

# PyOneDesk for OneDrive

配套
- 纯 api 服务器
- CLI 命令行式程序
- Chrome 扩展 *(todo)*
- 网站管理后台（管理OneDrive账号）
- 网站前端（文件选择器）

普通用户通过pip安装pyonedesk即可
`pip3 install pyonedesk`

专业用户
1. `cd ./webpack && npm run build`生成网页数据
2. `cd ../pyonedesk/ && python3 main.py server --port 23333` 启动网页服务，更多使用方法请看使用介绍


基于
- python 3.7
    - click
    - diskcache
    - 更多库请看[requirements.txt](pyonedesk/requirements.txt)
- vue
    - vue-cli
    - element-ui 

使用
- chrome扩展将会在Google Chrome扩展商店上架 *(todo)*
- 启动网页服务器：
    - `pyonedesk server --port 23333 --password 123`
    - port 端口
    - password 管理后台的登录密码，**sha256加密后存放**    
- 命令行 所有命令：
    - 列出一些信息
        - `pyonedesk info`
        - 关于一些运作数据，例如存储数据的目录路径和这个目录的容量信息等等
    - 本地账号的相关操作
        - 命令行不提供添加OneDrive账号功能，因为使用网页方式添加更加方便
        - 假设有 A 和 B 两个账号，没有设置默认账号
        - 列出所有账号的别名
            - `pyonedesk cli accounts`
            - 输出信息 `[ A, B ]`
        - 将别名为A的账号设置为默认账号 `pyonedesk cli --select A default`
        - [重要信息：什么是默认账号？](#默认账号)
        - 再次列出所有账号
            - `pyonedesk cli accounts`
            - 输出信息 `[ *A, B ]`
            - 带星号的是默认账号
        - 删除账号
            - `pyonedesk cli --select A`
            - 输入y按回车确认删除后就删了
    - OneDrive文件级操作
        - 将默认账号的目录定位到/ABC目录，*会影响相同账号的后续命令
            - `pyonedesk cli cd /ABC`
        - 将B账号的目录定位到/ABC目录，*会影响相同账号的后续命令
            - `pyonedesk cli cd /ABC`
        - 列出 /ABC 目录的所有内容 *受 cd 命令影响
            - `pyonedesk cli ls` 
    - `pyonedesk cli upload ./文本.txt` 将本地文件【文本.txt】上传到默认账号的 /ABC 目录，受 cd 命令影响
    - `pyonedesk cli upload ./文本.txt /XYZ` 将本地文件【文本.txt】上传到默认账号的 /XYZ 根目录，忽略 cd 命令的影响
    - 假设有两个账号分别为A和B，A为默认账号，用上传文件操作举例：
    - `pyonedesk cli upload ./视频.mp4` 将本地的视频.mp4上传到A的根目录，因为A为默认账号，可以忽略--select选择账号参数
    - `pyonedesk cli --select B upload ./视频.mp4 /` 将本地的视频.mp4文件上传到B账号的OneDrive根目录

# 默认账号
将一个账号设置为默认账号后，可以快速操作这个账号

用一堆命令来举例：

先查看账号A的[目录A1]、[目录A2]的文件夹内容

再查看账号B的[目录B1]文件夹内容

- 没有默认账号的情况下：
    - `pyonedesk cli --select A cd /目录A1`
    - `pyonedesk cli --select A ls`
    - `pyonedesk cli --select A cd /目录A2`
    - `pyonedesk cli --select A ls`
    - `pyonedesk cli --select B cd /目录B1`
    - `pyonedesk cli --select B ls`
- 将账号A设置为默认账号的情况下：
    - `pyonedesk cli --select A default`
    - `pyonedesk cli cd /目录A1`
    - `pyonedesk cli ls`
    - `pyonedesk cli cd /目录A2`
    - `pyonedesk cli ls`
    - `pyonedesk cli --select B cd /目录B1`
    - `pyonedesk cli --select B ls`

省了很多次输入 -s / --select 参数，效果显著
wat-cli 0.1.3
Get short answers from Wolfram Alpha.
License: MIT

# wat is this?

It's a simple command line tool to get short answers from Wolfram Alpha.

```
> wat is the circumference of the moon`
about 10921 kilometers
```

# wat do i need to do to run this?

You need to get an AppId from Wolfram Alpha. Please visit the
[API Documentation](https://products.wolframalpha.com/api/) website
for further information.

The AppID can be supplied via the `--appid` CLI option or via the configuration
file (`appid="XXXXXX-YYYYYYYYYY"`).

Run `wat --help` to find the location of the configuration file.

# wat even is a kilometer? I want miles!

Use CLI option `--units=imperial` or add `units=imperial` to the configuration
file.

# wat does wat stand for?

Obviously it stands for Wolfram Alpha uhh... Thing.
web-mage 0.2.0
Small package that optimizes images for the web.
License: MIT
Requires Python: >=3.6.0


![PyPI](https://img.shields.io/pypi/v/web-mage?color=blue&label=PyPI%20version)
![PyPI - Downloads](https://img.shields.io/pypi/dm/web-mage?label=Downloads)

web-mage
========

web-mage is a simple Python package that's used to automate the process
of optimizing image files for the web. It can be imported and customized
in a Python module, or run simply as a command-line utility.

This project is functional, but still in early development.

Installation
------------

Install using `pip`:
```bash
pip install web-mage
```

Usage
-----

```bash
python3 -m web_mage SOURCE_DIR DEST_DIR
```

This will optimize all files in `SOURCE_DIR` to 60% quality with no image resizing,
and output them to `DEST_DIR` with a filename suffix.

Usage in Code
-------------

This is the preferred method of usage. You can import web-mage into
Python if you want to run jobs in a script or program, or customize
the way images are optimized.

```python
from web_mage.web_mage import Job
from web_mage.formats import IMG_FORMAT_CONTENT_LARGE

formats = [IMG_FORMAT_CONTENT_LARGE]
optim_job = Job(source="/path/to/source/directory",
                dest="/path/to/output/directory",
                formats=formats)
optim_job.run()
```

You can use multiple formats if you want images to be optimized for
multiple different devices or layouts. You can also define your own
image formats based on a few different parameters.

```python
from web_mage.formats import (ImageFormat,
                              IMG_FORMAT_CONTENT_LARGE,
                              IMG_FORMAT_CONTENT_MEDIUM,
                              IMG_FORMAT_CONTENT_SMALL)

my_format = ImageFormat(max_width=1024,  # Image will be resized based on dimensions.
                        max_height=768,
                        min_quality=85,  # This will optimize to 85% quality.
                        tag="my_format") # Tags are appended to the filename of the
                                         # resulting file so multiple output formats
                                         # can be distinguished.
my_other_format = ImageFormat(max_dimension=1280, # This will ensure that neither height
                                                  # nor width will exceed 1280 pixels.
                              tag="my_other_format")

formats = [IMG_FORMAT_CONTENT_LARGE,
           IMG_FORMAT_CONTENT_MEDIUM,
           IMG_FORMAT_CONTENT_SMALL,
           my_format,
           my_other_format]
```