semvec/pypi-packages huggingface dataset:
TraffiX 0.1.4a0
A package for macroscopic transportation assignment.
Keywords: Traffic Assignment,Transportation Planning,Macroscopic Transportation Planning

# TraffiX
Traffic Assignment with NetworkX and osmnX. <br>
Formerly known as "StraPy", the name clashed with other package name in PyPi.

## Purpose
TraffiX is aiming to create a free open access transportation simulation software for all, increasing reproducibility, transparency, and public accessibility while decreasing cost and subjective decision making in the transportation modelling domain.<br>
TraffiX is also intended as an environment and framework for student, researcher, public institution or any other interested parties to test all of their transportation modelling related problem for the advancement of the discipline itself.

## Current and Future Project Directions
### Now
TraffiX is currently developing macroscopic modelling assignment (User Equilibrium) described in Yosef Sheffi's Urban Transportation Networks and Maximum Entropy Matrix Estimation commonly used as the basic macroscopic transportation model in the four step transport plannning model. <br>
### In the near future
TraffiX short-term goals is supporting classical transportation modellling techniques and method described in Ortúzar & Willumsen's Modelling Transport and Yosef Sheffi's Urban Transportation Network <br>
### In the distant future
Although the current goals of StraPy are focusing on macroscopic aspect of transportation modelling, it is also expected to include functionalities to support on any other branches such as microscopic transportation modelling, behavioral model (discrete choice modelling), Agent-based Modelling (such as MATSim), dynamic modelling, etc.

## References
1. Aulia Rahman's [working paper](https://drive.google.com/file/d/1EsmRboHHBDYEzDBGGMN8GfWzcz8Zja3M/view?usp=sharing "Working Paper") (Indonesian Language).
2. Sheffi, Y. 1984. Urban Transportation Networks.
3. Ortúzar, J. de D., Willumsen, L.G., Consultancy, L.W., 2011. Modelling Transport.
tokenizer-viz 0.2.2
A package to visualize tokenization boundaries using HTML
Requires Python: >=3.7

# Tokenizer Viz

Tokenizer Viz is a Python package that generates HTML to visualize the tokenization of text. It highlights tokens with different colors and customizable styles, making it easier to understand how a text is tokenized.

---

<br>

## Project Layout

```terminal
tokenizer-viz/
│
├── tokenizer_viz/
│   ├── __init__.py
│   └── visualization.py
│
├── .gitignore
├── LICENSE
├── README.md
└── setup.py

<br>

## Installation

You can install the **`tokenizer-viz`** package using pip:

```bash
pip install tokenizer-viz
```

<br>

## Usage
Here's a quick example of how to use the package:

Usage with a provided encoder and decoder

```python
from tokenizer_viz import TokenVisualization
from IPython.display import HTML

# Define sample encoder and decoder functions for demonstration purposes
def sample_encoder(text):
    return list(text)

def sample_decoder(token):
    return token

# Initialize the TokenVisualization class with the encoder and decoder functions
token_viz = TokenVisualization(
    encoder=sample_encoder,
    decoder=sample_decoder
)

# Define a sample text to visualize tokenization boundaries
sample_text = "This is a sample text.\nIt has multiple lines."

# Visualize the tokenization boundaries
html = token_viz.visualize(sample_text)
HTML(html)
```

<br>

## EXAMPLE OUTPUT

**TBD EXAMPLE IMAGE**

<br>

## ARGUMENTS

The **`TokenVisualization`** class accepts several optional
parameters to customize the appearance and layout of the tokens:
* **`cmap`** (defualt=**`'Pastel2'`**),
* **`font_family`** (defualt=**`'Courier New'`**),
* **`transparency`** (default=**`0.675`**),
* **`font_size`** (defualt=**`'1.1em'`**),
* **`unk_token`** (defualt=**`'???'`**),
* **`font_weight`** (defualt=**`300`**),
* **`padding`** (defualt=**`'0px'`**),
* **`margin_right`** (defualt=**`'0px'`**),
* **`border_radius`** (defualt=**`'0px'`**),
* **`background_color`** (defualt=**`'#F0F0F0'`**),

Please refer to the class docstrings and method docstrings for a detailed description of each parameter.

## License

This project is licensed under the MIT License.

<br>