semvec/pypi-packages huggingface dataset:
complex-text-tools 0.2.4
A package for processing complex text with mixed Chinese and English characters
License: MIT
Requires Python: >=3.6

# Complex Text Tools

[![PyPI version](https://badge.fury.io/py/complex-text-tools.svg)](https://badge.fury.io/py/complex-text-tools)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/complex-text-tools)
![PyPI - License](https://img.shields.io/pypi/l/complex-text-tools)

一个用于处理包含中英文混合字符的复杂文本的Python包，能够移除多余空格并根据特定规则计算文本长度。

## 功能特性

- 移除中文字符之间的多余空格
- 移除中英文字符之间的多余空格
- 正确处理标点符号周围的间距
- 根据特定规则计算文本长度（中文字符、英文单词、数字、等式等）
- 修复中文文本中的标点符号（将英文标点转换为中文标点）
- 高效处理混合语言文本

## 安装

```bash
pip install complex-text-tools
```

## 使用方法

### 移除多余空格

```python
from complex_text_tools import remove_extra_spaces

text = "这 是  中文 测试  文本 ，  mixed  English  text  here ， 还 有   symbols :  ;  !  "
clean_text = remove_extra_spaces(text)
print(clean_text)
# 输出: "这是中文测试文本，mixed English text here，还有 symbols:;!"
```

### 计算有效文本长度

```python
from complex_text_tools import count_eff_len

text = "这是一段包含 English words 和 123.45 数字的 mixed 文本"
result = count_eff_len(text)
print(result)
# 输出:15
```

### 修复标点符号

```python
from complex_text_tools import fix_punctuation

text = "这是中文文本，但使用了英文标点.这看起来不太自然，对吗？"
fixed_text = fix_punctuation(text)
print(fixed_text)
# 输出: "这是中文文本，但使用了中文标点。这看起来不太自然，对吗？"
```

## 许可证

该项目基于 MIT 许可证 - 详情请见 [LICENSE](LICENSE) 文件。
viva-safeland 0.2.1
A new freeware for safe validation of vision-based navigation in aerial vehicles
License: MIT
Requires Python: >=3.12

# ViVa-SAFELAND: A **Vi**sual **Va**lidation **Safe** **Land**ing Simulation Platform

[![PyPI version](https://badge.fury.io/py/viva_safeland.svg)](https://badge.fury.io/py/viva-safeland)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Python versions](https://img.shields.io/pypi/pyversions/viva_safeland.svg)](https://pypi.org/project/viva-safeland)

<div align="center">
  <img
    src="https://github.com/user-attachments/assets/6dd8b893-0e0b-405e-a067-e8bfafdf30c5"
    width="1200"
    alt="viva_logo"
  />
</div>

**ViVa-SAFELAND** is an open-source simulation platform for testing and evaluating vision-based navigation strategies for unmanned aerial vehicles, with a special focus on autonomous landing in compliance with safety regulations.

<div align="center">
  <img 
    src="https://github.com/user-attachments/assets/958905f5-4615-4de5-9e56-77c02886dde2"
    alt="ViVa-SAFELAND tool"
    width="1200"
  />
  <figcaption>ViVa-SAFELAND: A Visual Validation Safe Landing Tool</figcaption>
</div>

This documentation contains the official implementation for the paper *"ViVa-SAFELAND: An Open-Source Simulation Platform for Safe Validation of Vision-based Navigation in Aerial Vehicles"*. It provides a safe, simple, and fair comparison baseline to evaluate and compare different visual navigation solutions under the same conditions.

<div align="center">
  <img 
    src="https://github.com/user-attachments/assets/24d245d4-1568-4f1b-be81-f74ed0d9c574"
    alt="ViVa-SAFELAND Operation" 
    width="1200"
  />
  <figcaption>Example of ViVa-SAFELAND operation</figcaption>
</div>

## Key Features

-   **Real-World Scenarios:** Utilize a collection of high-definition aerial videos from unstructured urban environments, including dynamic obstacles like cars and people.
-   **Emulated Aerial Vehicle (EAV):** Navigate within video scenarios using a virtual moving camera that responds to high-level commands.
-   **Standardized Evaluation:** Provides a safe and fair baseline for comparing different visual navigation solutions under identical, repeatable conditions.
-   **Development & Data Generation:** Facilitates the rapid development of autonomous landing strategies and the creation of custom image datasets for training machine learning models.
-   **Safety-Focused:** Enables rigorous testing and debugging of navigation logic in a simulated environment, eliminating risks to hardware and ensuring compliance with safety regulations.

## Documentation
For detailed usage instructions, examples, and API documentation, please refer to the [ViVa-SAFELAND Documentation](https://viva-safeland.github.io/viva_safeland/).

## Citation

If you use ViVa-SAFELAND in your research, please cite us.