semvec/pypi-packages huggingface dataset:
PySegmentKit 0.2.1
A python-port of julius-speech/segmentation-kit
License: MIT
Requires Python: >=3.6

# PySegmentKit

> A python-port of [julius-speech/segmentation-kit](https://github.com/julius-speech/segmentation-kit)

- No more Perl
- No more edit original script to set options

## Usage

```python
from PySegmentKit import PySegmentKit, PSKError

sk = PySegmentKit(input(),
    disable_silence_at_ends=False,
    leave_dict=False,
    debug=False,
    triphone=False,
    input_mfcc=False)

try:
    segmented = sk.segment()
    for result in segmented.keys():
        print("=====Segmentation result of {}.wav=====".format(result))
        for begintime, endtime, unit in segmented[result]:
            print("{:.7f} {:.7f} {}".format(begintime, endtime, unit))
except PSKError as e:
    print(e)
```

## Install as a third-party library

- PyPI

```shell
$ pip install PySegmentKit
```

## Use as a CLI

- Copy

```shell
$ git clone https://github.com/urushiyama/PySegmentKit.git
$ python PySegmentKit/main.py -h # show detailed usage
```

## License

This library is released under MIT License.

The original perl script, [julius-speech/segmentation-kit](https://github.com/julius-speech/segmentation-kit), is released under MIT License. 

This library bundles some binaries of [Julius](https://github.com/julius-speech/julius), which is released under BSD 3-Clause "New" or "Revised" License.

Please refer to [ACKNOWLEDGEMENTS.md](ACKNOWLEDGEMENTS.md) for detail.
python-abspath 0.1.1
python-abspath provides a command line tool that prints the absolute paths of all given files. File names can be piped via STDIN or given as arguments. Work for both Windows and Linux.
License: MIT
Keywords: command line utils,python-abspath

# python-abspath

python-abspath provides a command line tool that prints the absolute paths of all given files. File names can be piped via STDIN or given as arguments. Work for both Windows and Linux.

## Install

```shell
pip install python-abspath
```

## Installed Command Line Tools

- abspath

## Usage

```shell
C:\Code\python-abspath>abspath --help
Usage: abspath.py [OPTIONS] [PATH]...

Options:
  -q, --with-quotes
  --help             Show this message and exit.
```

## Example

**Example 1:** 

Show the absolute path of requirements.txt. requirements.txt is given as a parameter.

```shell
C:\Code\python-abspath>abspath requirements.txt
C:\Code\python-abspath\requirements.txt
```

**Example 2:**

Show the absolute path of a.txt and b.txt. a.txt and b.txt are given as parameters.

```shell
C:\Code\python-abspath>abspath a.txt b.txt
C:\Code\python-abspath\a.txt
C:\Code\python-abspath\b.txt
```

**Example 3:**

Filename or filenames can be piped via STDIN.

```shell

C:\Code\python-abspath>echo a.txt | abspath
C:\Code\python-abspath\a.txt

C:\Code\python-abspath>type filenames.txt
a.txt
b.txt
c.txt

C:\Code\python-abspath>type filenames.txt | abspath
C:\Code\python-abspath\a.txt
C:\Code\python-abspath\b.txt
C:\Code\python-abspath\c.txt
```

**Example 4:** 

In window the filename seperator is "\\", so you can NOT just copy the output and paste as a const value to your code. You have to add -q option, so that the output will be quoted and you can use it in you code.

```shell
C:\Code\python-abspath>abspath -q requirements.txt
"C:\\Code\\python-abspath\\requirements.txt"
```

## Releases

### v0.1.1 2020/10/27

- Add license file in release package.

### v0.1.0 2020/04/09

- First release.