https://github.com/linuxscout/arrand-arabic-random-text

https://github.com/linuxscout/arrand-arabic-random-text

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (7.4%) to scientific vocabulary
Last synced: 3 months ago · JSON representation

Repository

Basic Info
  • Host: GitHub
  • Owner: linuxscout
  • License: gpl-3.0
  • Language: Python
  • Default Branch: master
  • Size: 6.43 MB
Statistics
  • Stars: 49
  • Watchers: 3
  • Forks: 2
  • Open Issues: 2
  • Releases: 0
Created over 5 years ago · Last pushed 6 months ago
Metadata Files
Readme Funding License Authors

README.md

Arrand: random Arabic text generator

Arrand: random Arabic text generator

arrand logo

Python Versions

Downloads Build Tests Coverage

Developpers: Taha Zerrouki: http://tahadz.com taha dot zerrouki at gmail dot com

Features | value ---------|--------------------------------------------------------------------------------- Authors | Authors.md Release | PyPI License |License Tracker |linuxscout/arrand/Issues Source |Github Feedbacks |Comments Documentation |@Docs

Description

Arrand: random Arabic text generator

:







Usage

install

shell pip install arrand

[requirement]

pyarabic>=0.6.8

import

```python

import arrand.arrandom ```

Examples

Detailed examples and features in Features

  • Random text python ... arrand.arrandom.select() ' ... '
  • Select Hadith python ... arrand.arrandom.hadith() ' : : .'
  • Select Aya python ... arrand.arrandom.aya() '6|56| '
  • Select Proverb python ... arrand.arrandom.proverb() ' '
  • Select phrase python ... arrand.arrandom.phrase() ' : : .'
  • Select word python ... arrand.arrandom.word() ''
  • Select poem python ... arrand.arrandom.poem() '9 # ' >>>
  • Sample many python ... arrand.arrandom.sample(category = "text", max_length=2, vocalized=False) [' ... ', ' :'] >>> arrand.arrandom.sample(category = "hadith", max_length=2, vocalized=False) [' .(1/231)', ' : : : : .(1/136)'] >>> arrand.arrandom.sample(category = "poem", max_length=2, vocalized=False) ['1 # ', '0 # ']
  • vocalized python >>> arrand.arrandom.sample(category = "text", max_length=2, vocalized=True) [' 5/2/2014 : /', ' 20 13 .'] >>> arrand.arrandom.sample(category = "hadith", max_length=2, vocalized=True) [' : : .', ' : : .'] >>> arrand.arrandom.sample(category = "poem", max_length=2, vocalized=True) ['8 # ', '11 # ']

```python

arrand.arrandom.hadith(vocalized=True) ' : : : .' arrand.arrandom.aya(vocalized=True) '4|133| ' arrand.arrandom.proverb(vocalized=True) ' ' arrand.arrandom.phrase(vocalized=True) ' : : .' arrand.arrandom.poem(vocalized=True) '13 # '

```

Non sense texts

python ... arrand.arrandom.rand_sentences(3) [' .', ' : .', ' .'] * Select non sense text ```python ... arrand.arrandom.rand_sentence() ' ...'

```

Generate non sense texts from a file

```python

import arrand.builder mygen = arrand.builder.generator("text.txt") mygen.rand_sentences(2) [' .', ' ...']

```

Generate samples with word count control

```python

arrand.arrandom.sample(category="text", maxlength=3, minwords=9, max_words=20) [' ... \n', ' : .\n', ' ... \n']

```

Owner

  • Name: Taha Zerrouki (طه زروقي )
  • Login: linuxscout
  • Kind: user
  • Location: Bouira, Algeria
  • Company: Bouira University

PhD, Computer Science Professor, Interest : Arabic Natural Language processing