semvec/pypi-packages huggingface dataset:
graph-of-words 0.1
A module to generate a graph of words
Requires Python: >=3.5, <4
Keywords: networkx graph words nlp

<!--
SPDX-FileCopyrightText: 2019 Vincent Lequertier <vi.le@autistici.org>
SPDX-License-Identifier: GPL-3.0-or-later
-->

# Graph of words

[![REUSE status](https://api.reuse.software/badge/gitlab.com/vi.le/graphofwords)](https://api.reuse.software/info/gitlab.com/vi.le/graphofwords)

Create a graph of word representation from a text. Roughly based on *Malliaros, F. D., & Skianis, K. (2015). Graph-Based Term Weighting for Text Categorization. 1473–1479. https://doi.org/10.1145/2808797.2808872*

Example:

```python
import graph
graph = graph.GraphOfWords(window_size=2)
graph.build_graph(
    'Roses are red. Violets are blue',
    # OR a sentences list['Roses  are  red.', 'Violets are blue'],
    remove_stopwords=False,
    workers=4
)

graph.display_graph()
graph.write_graph_edges('edges_list.txt')
```

Note that `build_graph` also accepts a list of sentences.

The following actions are performed:

1. Split the text into sentences if required
2. Slide a window across each sentence
3. Add a directed graph edge form the current word to the other ones within the
   window, the weight being the distance between the two words

## Documentation

See [the documentation](http://vi.le.gitlab.io/graphofwords/).
tg-api-autoreg 0.1.3
Library for automatic registration telegram User Api (Alpha)


# tg-api-autoreg
Developed by: **Alexand Macheck**
[My telegram](https://t.me/youbrain)

**Python** module for automatic registration **Telegram User API**
> **pip install tg-api-autoreg**

**Examples:**

Short:
``` python
phone = '+123456789'
proxy = '127.0.0.1:8888'

session = Reigister_api(phone, proxy, send_code=True) # initializing
data = session.get_api(input('code: '))
print(data) # -> dict with all avliable info (with api_id, api_hash)
```

Detailed:
``` python	   
phone = '+123456789'
proxy = '127.0.0.1:8888'

session = Reigister_api(phone, proxy) # initializing

random_hash = seesion.send_code() # Send code request
cookies = session.login(input('confirmation code:')) # passing conf code
session.create_api() # creating new api
session.parse_api_data() # parsing & saving all api_id, api_hash

data = session.api_data()
print(data) # -> dict with all avliable info (with api_id, api_hash)
```