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

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)
CredData is a set of files including credentials in open source projects

CredData is a set of files including credentials in open source projects. CredData includes suspicious lines with manual review results and more information such as credential types for each suspicio

Samsung 19 Sep 07, 2022
I can help you convert your images to pdf file.

IMAGE TO PDF CONVERTER BOT Configs TOKEN - Get bot token from @BotFather API_ID - From my.telegram.org API_HASH - From my.telegram.org Deploy to Herok

MADUSHANKA 10 Dec 14, 2022
Speech to text streamlit app

Speech to text Streamlit-app! 👄 This speech to text recognition is powered by t

Charly Wargnier 9 Jan 01, 2023
CJK computer science terms comparison / 中日韓電腦科學術語對照 / 日中韓のコンピュータ科学の用語対照 / 한·중·일 전산학 용어 대조

CJK computer science terms comparison This repository contains the source code of the website. You can see the website from the following link: Englis

Hong Minhee (洪 民憙) 88 Dec 23, 2022
ChatBotProyect - This is an unfinished project about a simple chatbot.

chatBotProyect This is an unfinished project about a simple chatbot. (union_todo.ipynb) Reminders for the project: Find why one of the vectorizers fai

Tomás 0 Jul 24, 2022
Understanding the Difficulty of Training Transformers

Admin Understanding the Difficulty of Training Transformers Guided by our analyses, we propose Adaptive Model Initialization (Admin), which successful

Liyuan Liu 300 Dec 29, 2022
Code for the paper "BERT Loses Patience: Fast and Robust Inference with Early Exit".

Patience-based Early Exit Code for the paper "BERT Loses Patience: Fast and Robust Inference with Early Exit". NEWS: We now have a better and tidier i

Kevin Canwen Xu 54 Jan 04, 2023
Gathers machine learning and Tensorflow deep learning models for NLP problems, 1.13 < Tensorflow < 2.0

NLP-Models-Tensorflow, Gathers machine learning and tensorflow deep learning models for NLP problems, code simplify inside Jupyter Notebooks 100%. Tab

HUSEIN ZOLKEPLI 1.7k Dec 30, 2022
TPlinker for NER 中文/英文命名实体识别

本项目是参考 TPLinker 中HandshakingTagging思想,将TPLinker由原来的关系抽取(RE)模型修改为命名实体识别(NER)模型。

GodK 113 Dec 28, 2022
Implementation of ProteinBERT in Pytorch

ProteinBERT - Pytorch (wip) Implementation of ProteinBERT in Pytorch. Original Repository Install $ pip install protein-bert-pytorch Usage import torc

Phil Wang 92 Dec 25, 2022
Super Tickets in Pre-Trained Language Models: From Model Compression to Improving Generalization (ACL 2021)

Structured Super Lottery Tickets in BERT This repo contains our codes for the paper "Super Tickets in Pre-Trained Language Models: From Model Compress

Chen Liang 16 Dec 11, 2022
CPT: A Pre-Trained Unbalanced Transformer for Both Chinese Language Understanding and Generation

CPT This repository contains code and checkpoints for CPT. CPT: A Pre-Trained Unbalanced Transformer for Both Chinese Language Understanding and Gener

fastNLP 342 Jan 05, 2023
Sequence Modeling with Structured State Spaces

Structured State Spaces for Sequence Modeling This repository provides implementations and experiments for the following papers. S4 Efficiently Modeli

HazyResearch 902 Jan 06, 2023
Lingtrain Aligner — ML powered library for the accurate texts alignment.

Lingtrain Aligner ML powered library for the accurate texts alignment in different languages. Purpose Main purpose of this alignment tool is to build

Sergei Averkiev 76 Dec 14, 2022
BERT Attention Analysis

BERT Attention Analysis This repository contains code for What Does BERT Look At? An Analysis of BERT's Attention. It includes code for getting attent

Kevin Clark 401 Dec 11, 2022
Tensorflow implementation of paper: Learning to Diagnose with LSTM Recurrent Neural Networks.

Multilabel time series classification with LSTM Tensorflow implementation of model discussed in the following paper: Learning to Diagnose with LSTM Re

Aaqib 552 Nov 28, 2022
PortaSpeech - PyTorch Implementation

PortaSpeech - PyTorch Implementation PyTorch Implementation of PortaSpeech: Portable and High-Quality Generative Text-to-Speech. Model Size Module Nor

Keon Lee 276 Dec 26, 2022
Chinese Grammatical Error Diagnosis

nlp-CGED Chinese Grammatical Error Diagnosis 中文语法纠错研究 基于序列标注的方法 所需环境 Python==3.6 tensorflow==1.14.0 keras==2.3.1 bert4keras==0.10.6 笔者使用了开源的bert4keras

12 Nov 25, 2022
A Non-Autoregressive Transformer based TTS, supporting a family of SOTA transformers with supervised and unsupervised duration modelings. This project grows with the research community, aiming to achieve the ultimate TTS.

A Non-Autoregressive Transformer based TTS, supporting a family of SOTA transformers with supervised and unsupervised duration modelings. This project grows with the research community, aiming to ach

Keon Lee 237 Jan 02, 2023
aMLP Transformer Model for Japanese

aMLP-japanese Japanese aMLP Pretrained Model aMLPとは、Liu, Daiらが提案する、Transformerモデルです。 ざっくりというと、BERTの代わりに使えて、より性能の良いモデルです。 詳しい解説は、こちらの記事などを参考にしてください。 この

tanreinama 13 Aug 11, 2022