تولید اسم های رندوم فینگیلیش

Related tags

Text Data & NLPkarafs
Overview

karafs کرفس

تولید اسم های رندوم فینگیلیش

installation

➜ pip install karafs

usage

دو زبانه

➜ karafs -n 10
توت فرنگی بی ناموس
toot farangi-ye bi_namoos
غورهٔ خسته
ghoore-ye khaste
انار زره پوش
anaar-e zereh push
انگور سر سپرده
angoor-e sar sepordeh
زلزلک نادان
zalzalak-e naadaan
سیب ورپریده
sib-e varparideh
فندق عقدهای
fandogh-e oghde_ee
گریپ فروت قزمیت
grip froot-e ghozmit
نارگیل پرورده
nargil-e parvardeh
تن ماهی تافته
ton maahi-ye tafteh

فقط انگلیسی

➜ karafs -n 10 -en
shaftaaloo-ye boland parvaz
baalang-e khoshhal
porteghal-e foroo_heshteh
piyaz-e oghde_ee
fandogh-e afsordeh
gheisi-e kar azmoodeh
piyaz-e gomashteh
limoo shirin-e zhoolideh
senjed-e tafteh
ananas-e khafan

فقط فارسی

➜ karafs -n 10 -fa

کیوی شارلاتان
لوبیا چیتی چابک
نوشابهٔ مفلس
تن ماهی اسکل
انار آلوده
انجیر پرورده
توت خسته
خیار رهیده
کمبوزهٔ شراب زده
گلابی فرسوده

option -n

با این آپشن میتونید تعداد دفعات تولید اسم رندوم رو مشخص کنید. اگر تنظیمش نکنید به طور پیشفرض تعداد 1 در نظر گرفته میشه.

➜ karafs -n 5

option --no-space

با این آپشن میتونید خروجی رو بدون فاصله بین کلمات بگیرین:

➜ karafs --no-space -n 10

use as library

شما میتونید کرفس رو به عنوان یک کتابخانه توی برنامه هاتون استفاده کنید.

import karafs

print(karafs.gen_str()) # generate a random name (finglish)
print(karafs.gen_str('fa')) # generate a random name (persian)

print(karafs.gen_str_without_space()) # generate a random name without whitespace (finglish)
print(karafs.gen_str_without_space('fa')) # generate a random name without whitespace (persian)
Comments
  • استفاده به عنوان کتابخانه

    استفاده به عنوان کتابخانه

    در حال حاضر میشه این ابزار رو فقط توی خط فرمان استفاده کرد. @iamvee ایده ای برای اینکه مثلا بشه ایمپورتش کرد و اسم های رندوم رو تو برنامه استفاده کرد نداری؟

    enhancement 
    opened by parsampsh 2
  • Some cleanups

    Some cleanups

    Hi there. I maked this changes:

    • added docstring for main
    • removed from secrets import choice because function choice is declared
    • added docstring for function choice
    • fixed some trailing whitespaces
    • cleanup function gen
    • added .gitignore
    opened by parsampsh 2
  • Use as library

    Use as library

    فایل bin/karafs رو به karafs/karafs.py منتقل کردم. و توی bin/karafs هم کرفس رو ایمپورت کردم و اجراش کردم. اینجوری بقیه هم میتونن خارج از خط فرمان تو کدشون استفادش کنن. تست مست و داکیمونت هم براش اضافه کردم. (#9)

    همچنین میتونن اینجوری هم رانش کنن:

    $ python3 -m karafs
    
    opened by parsampsh 1
  • Add GitHub workflow

    Add GitHub workflow

    I Added github workflow for running the tests. But there is a problem in Windows (I think its related to printing persian letters in the terminal). I disabled windows.

    opened by parsampsh 0
  • Cleanup

    Cleanup

    • removed unused random import
    • added docstrings
    • fix some trailing whitespaces
    • handle using function gen
    • some small refactors
    • downgrade python version to 3.6 in setup.py (this also works in 3.6)
    opened by parsampsh 0
  • Update karafs.py - replace some underlines with dashes

    Update karafs.py - replace some underlines with dashes

    Hi, I replaced some underlines in adjectives with dashes, because it was returning some names containing both underline and dash and it was not beautiful. (for example: hendoone-ye-afsordeh_sima)

    opened by erfansaberi 0
Releases(v0.1)
Owner
Vaheed NÆINI (9E)
جالینوکس   𝚊𝚕𝚒𝚊𝚜 𝚎="𝚎𝚖𝚊𝚌𝚜 -𝚗𝚠"
Vaheed NÆINI (9E)
Search Git commits in natural language

NaLCoS - NAtural Language COmmit Search Search commit messages in your repository in natural language. NaLCoS (NAtural Language COmmit Search) is a co

Pushkar Patel 50 Mar 22, 2022
Blazing fast language detection using fastText model

Luga A blazing fast language detection using fastText's language models Luga is a Swahili word for language. fastText provides a blazing fast language

Prayson Wilfred Daniel 18 Dec 20, 2022
ALIbaba's Collection of Encoder-decoders from MinD (Machine IntelligeNce of Damo) Lab

AliceMind AliceMind: ALIbaba's Collection of Encoder-decoders from MinD (Machine IntelligeNce of Damo) Lab This repository provides pre-trained encode

Alibaba 1.4k Jan 04, 2023
DiffSinger: Singing Voice Synthesis via Shallow Diffusion Mechanism (SVS & TTS); AAAI 2022

DiffSinger: Singing Voice Synthesis via Shallow Diffusion Mechanism This repository is the official PyTorch implementation of our AAAI-2022 paper, in

Jinglin Liu 829 Jan 07, 2023
Local cross-platform machine translation GUI, based on CTranslate2

DesktopTranslator Local cross-platform machine translation GUI, based on CTranslate2 Download Windows Installer You can either download a ready-made W

Yasmin Moslem 29 Jan 05, 2023
A Multilingual Latent Dirichlet Allocation (LDA) Pipeline with Stop Words Removal, n-gram features, and Inverse Stemming, in Python.

Multilingual Latent Dirichlet Allocation (LDA) Pipeline This project is for text clustering using the Latent Dirichlet Allocation (LDA) algorithm. It

Artifici Online Services inc. 74 Oct 07, 2022
multi-label,classifier,text classification,多标签文本分类,文本分类,BERT,ALBERT,multi-label-classification,seq2seq,attention,beam search

multi-label,classifier,text classification,多标签文本分类,文本分类,BERT,ALBERT,multi-label-classification,seq2seq,attention,beam search

hellonlp 30 Dec 12, 2022
Idea is to build a model which will take keywords as inputs and generate sentences as outputs.

keytotext Idea is to build a model which will take keywords as inputs and generate sentences as outputs. Potential use case can include: Marketing Sea

Gagan Bhatia 364 Jan 03, 2023
PUA Programming Language written in Python.

pua-lang PUA Programming Language written in Python. Installation git clone https://github.com/zhaoyang97/pua-lang.git cd pua-lang pip install . Try

zy 4 Feb 19, 2022
An ActivityWatch watcher to pose questions to the user and record her answers.

aw-watcher-ask An ActivityWatch watcher to pose questions to the user and record her answers. This watcher uses Zenity to present dialog boxes to the

Bernardo Chrispim Baron 33 Dec 03, 2022
Collection of scripts to pinpoint obfuscated code

Obfuscation Detection (v1.0) Author: Tim Blazytko Automatically detect control-flow flattening and other state machines Description: Scripts and binar

Tim Blazytko 230 Nov 26, 2022
🤗 The largest hub of ready-to-use NLP datasets for ML models with fast, easy-to-use and efficient data manipulation tools

🤗 The largest hub of ready-to-use NLP datasets for ML models with fast, easy-to-use and efficient data manipulation tools

Hugging Face 15k Jan 02, 2023
Predict the spans of toxic posts that were responsible for the toxic label of the posts

toxic-spans-detection An attempt at the SemEval 2021 Task 5: Toxic Spans Detection. The Toxic Spans Detection task of SemEval2021 required participant

Ilias Antonopoulos 3 Jul 24, 2022
An A-SOUL Text Generator Based on CPM-Distill.

ASOUL-Generator-Backend 本项目为 https://asoul.infedg.xyz/ 的后端。 模型为基于 CPM-Distill 的 transformers 转化版本 CPM-Generate-distill 训练而成。

infinityedge 46 Dec 11, 2022
Mesh TensorFlow: Model Parallelism Made Easier

Mesh TensorFlow - Model Parallelism Made Easier Introduction Mesh TensorFlow (mtf) is a language for distributed deep learning, capable of specifying

1.3k Dec 26, 2022
Pipeline for fast building text classification TF-IDF + LogReg baselines.

Text Classification Baseline Pipeline for fast building text classification TF-IDF + LogReg baselines. Usage Instead of writing custom code for specif

Dani El-Ayyass 57 Dec 07, 2022
Finetune gpt-2 in google colab

gpt-2-colab finetune gpt-2 in google colab sample result (117M) from retraining on A Tale of Two Cities by Charles Di

212 Jan 02, 2023
The model is designed to train a single and large neural network in order to predict correct translation by reading the given sentence.

Neural Machine Translation communication system The model is basically direct to convert one source language to another targeted language using encode

Nishant Banjade 7 Sep 22, 2022
IMDB film review sentiment classification based on BERT's supervised learning model.

IMDB film review sentiment classification based on BERT's supervised learning model. On the other hand, the model can be extended to other natural language multi-classification tasks.

Paris 1 Apr 17, 2022
Interactive Jupyter Notebook Environment for using the GPT-3 Instruct API

gpt3-instruct-sandbox Interactive Jupyter Notebook Environment for using the GPT-3 Instruct API Description This project updates an existing GPT-3 san

312 Jan 03, 2023