Synonymos
所属分类:搜索引擎
开发工具:Python
文件大小:0KB
下载次数:0
上传日期:2024-02-19 21:26:31
上 传 者:
sh-1993
说明: 一个仅用于娱乐的项目,使用随机同义词更改文本中的非关键词。如果你有太多的空闲时间,你可以玩一个类似“这篇文章是关于什么的”的游戏。
(A just for fun project that changes non-stopwords in a text with random synonyms. You could play a game like "What is this text about ", if you have, like, too much free time.)
文件列表:
synonymos/
requirements.txt
stopwords.txt
syn.py
# Synonymos
If you have ever wanted to change a perfectly normal text into some gibberish, this tool is going to help you!
Pass a wiki article URL, string or some text file path as parameter and all non-stopwords will be switched with some random synonyms.
Since wiki articles can be quite long, only the summary will be "translated".
**The README Introduction after Synonymos has striked:**
_If you have always cherished to deepen a perfectly convention text into some gibberish, this instrument is become to help oneself you! Excrete a wiki article Url, string or some text cha
rge way as parameter and all non-stopwords will be throw with some random synonym. Since wiki article can be quite retentive, only the compendious will be "translated"._
## Setup
* Python >= 3.8
* Requirements: `pip install -r requirements.txt`
## Usage
**Handle a simple string**
```
python syn.py -s
```
**Handle a .txt file**
```shell script
python syn.py -t
```
**Handle a wikipedia entry**
```shell script
python syn.py -w
```
**Set an output directory**
```shell script
python syn.py -s -o
近期下载者:
相关文件:
收藏者: