Saravanan666/pypi-org huggingface dataset:
Package: texttaglib
texttagliba Python library for managing and annotating text corpuses in different formats (ELAN, TIG, TTL, et cetera).Warning⚠️texttaglibpackage is now in maintenance mode for supporting legacy software only. All new development will be moved tospeachlibrary.Migration fromtexttaglibtospeachshould be trivial# just change import statements from something likefromtexttaglibimportelan# tofromspeachimportelanInstallation# changepipinstalltexttaglib# intopipinstallspeachFor more information, please visit:https://github.com/neocl/speachLegacytexttaglib legacy releases (>= 0.1.1, < 0.2) use embedded chirptext-0.1 and puchikarui-0.1 for supporting legacy APIs.Here is the sample code:fromtexttaglibimportttlfromtexttaglib.chirptextimportchiofromtexttaglib.chirptextimportdekofromtexttaglib.puchikaruiimportSchemaLegacy documentation:https://texttaglib.readthedocs.io
Package: textteaser
textteaser is a package for summarizing text using the TextTeaser API.See:https://www.mashape.com/mojojolo/textteaserfor more information and to get an API key.Documentation is available on Read the Docs:https://py-textteaser.readthedocs.org/InstallationIf you have already downloaded textteaser, run the following
command inside this directory:$ python setup.py installIf you have not yet downloaded textteaser, it would be easier to use
pip:$ pip install textteaseror easy_install:$ easy_install textteaserEither method will install textteaser into your current environment.ChangelogFor a full history of changes see the commit history:https://bitbucket.org/jgoettsch/py-textteaser/commits/allversion 0.3Added minimal logging support.version 0.2Able to summarize text at a given URL.version 0.1.1Removed caching ability to match API changes.version 0.1Able to summarize text with the TextTeaser API.Able to retrieve passed summaries quickly through cached ID values.DevelopmentDevelopment for textteaser takes place on bitbucket:https://bitbucket.org/jgoettsch/py-textteaser/A mirror is available on GitHub if you prefer:https://github.com/jgoettsch/py-textteaserTo get started you can do the following:$ hg clone https://bitbucket.org/jgoettsch/py-textteaser/
$ cd py-textteaser
$ pip install -r requirements_dev.txt
$ python setup.py developIf you discover a bug, please create an issue ticket:https://bitbucket.org/jgoettsch/py-textteaser/issues/newTo run the test suite, you will have to create a module at:textteaser/tests/apikey.pywith a global variable, APIKEY, which is a string containing your API key.
Then you can run the test suite with nosetests:$ nosetests --with-coverage --cover-package=textteaser textteaser/tests/tests.pyor through setup.py:$ python setup.py test
Package: textTinyPy
textTinyPyThetextTinyPypackage consists of text processing functions for small or big data files. The source code is based on C++11 and wrapped in Python using Cython. It is tested on Linux (Debian) with Python 2.7 and there is currently one limitation :there is no support for chinese, japanese, korean, thai or languages with ambiguous word boundaries.The functionality of the textTinyPy is explained in theblog postDetails for the parameters of each class can be found in the packagedocumentationThe package will work properly only if the following requirements are satisfied / installed :System Requirements:boost(boost >= 1.55)armadillo(armadillo >= 0.7.5)aC++11compilerOpenMPfor parallelization (optional)Python Requirements:Cython>=0.23.5pandas>=0.21.0scipy>=0.13.0numpy>=1.11.2future>=0.15.2The package can be installed frompypiusing:pip install textTinyPyTo upgrade usepip install -U textTinyPyUse the following link to report bugs/issues,https://github.com/mlampros/textTinyPy/issuesInstallation of System Requirements on Linux (Debian):The installation requires a gcc-4.8 or newer (this can be checked in a console using :gcc –version).If the gcc is older than 4.8 continue with step1.else go to step2.1.: installation of gcc-4.9 and g++-4.9sudo add-apt-repository ppa:ubuntu-toolchain-r/test -ysudo apt-get updatesudo apt-get install gcc-4.9sudo apt-get install g++-4.9sudo update-alternatives –install /usr/bin/gcc gcc /usr/bin/gcc-4.9 90sudo update-alternatives –install /usr/bin/g++ g++ /usr/bin/g++-4.9 90sudo update-alternatives –install /usr/bin/gcov gcov /usr/bin/gcov-4.9 902.: installation of boost version 1.55 (including boost-locale and boost-system)sudo add-apt-repository ppa:boost-latest/ppa -ysudo apt-get updatesudo apt-get install libboost1.55-dev libboost-filesystem1.55-dev libboost-locale1.55-dev3.: installation of armadillo (including the requirements for Debian and Fedora)armadillo requirements – Debian onlysudo apt-get install cmake libopenblas-dev libblas-dev libarpack++2-dev liblapack-devarmadillo requirements – Fedora onlyyum install cmake openblas-devel lapack-devel arpack-devel SuperLU-develarmadillo installation version 7.600.2wgethttp://sourceforge.net/projects/arma/files/armadillo-7.600.2.tar.xztar xf armadillo-7.600.2.tar.xzcd armadillo-7.600.2/cmake .makesudo make install
Package: text-to-font
texttofontTake a .ttf file and generate ascii art using the font for text. Use any symbols for generating the font + fun mode where each character is built up of itself in ascii artInstructionsRunpip install text-to-fontThe following code prints the ascii art for"Hello!"in string formatfromtext_to_font.transformationsimportword_to_asciiprint(word_to_ascii(phrase='Hello!',font_size=12,kerning=1,font_path='~/fonts/somefont.ttf'# defaults to built-in 'slkscr.ttf' (SilkScreen) font))
Package: text-to-gif
text-to-gifAKA t2g or text-to-gif-cli on pypiWell, I didn't find a python lib to process the text as gif.So I developed this.It can help me to create gif from pure text input.t2g(text-to-gif) 支持开发者把文本转化为gif进行动态播放。学委写了很多文章都是贴静态图的，后来准备改成gif动图。发现市场没有这样的。所以用python写了一个小工具。它支持把 文本/代码 转化为gif 动态展示。If there is a 'input.txt' on current dirWe can just run 't2g'.And it will generate text2gif.gif file on current dir with default optionsPowered bypypi-seedQuickstartUsage doc generation:So any github user can use this tool to generate usage_doc.gif or specify your quick start doc as gifRun with emoji in text file:In case the above gif not rendering so well:Installation / 安装Get t2g by pip (通过PIP工具来安装text-to-gif)pipinstalltext-to-gifPrint the usaget2g-hUse text-to-gif as CLI / 命令行使用We can call the cli 't2g' or 'text-to-gif' or 'ttg'：调用下面两个命令行即可。t2g-p/Users/mac/PycharmProjects/hello/xuewei_pypi_blog.txt-d./blog.gif-f5ttg-p/Users/mac/PycharmProjects/hello/xuewei_pypi_blog.txt-d./blog.gif-f5text2gif-p/Users/mac/PycharmProjects/hello/xuewei_pypi_blog.txt-d./blog.gif-f5The above command will generate below gif:More InfoAuthor 雷学委The featuressupport text file into gif file in multi frames within default/specific durationsupport text file with emojiFor this support, t2g usespilmojito handle emojisupport user to provider a folder as input, t2g will collect list  of  text file(*.txt) firstIf there is not text file, it will try to collect list of logs (*.log) file and render them as a n frame gif(n=the number of match files)run 't2g-opt'  to check out the t2g environment variables to enable your own customizationt2g-opt will print the env var, and you can set the default value.
Package: texttohtml
Text2HtmlTo Translate text document to html document, Easy to use no code needed
Just pass given argument into terminal or command prompt
Give input document as text documentUseFor more information on how to use or additional options, type'--help'.Usage:python-mtexttohtml.convert[FILEPATH][-OPTIONS][-OUTPUTFILEPATH]-oOnsuccess,insteadofwritingtostdout,writetoafile.-tAddsthe<!DOCTYPEhtml>headertothegeneratedcode.-d[DEBUG]EachcycletheprocessorprintsinformationaboutHtmlstructureandfilereader.Example:python -m text2html.text2html elaa.txt -o elaa.htmltitle:Ex:txt:

@title Title of your web page;

Where @title indicates to apply style and ; indicates the end of style

output:
<title>Title of your web page</title>charset:@charset utf-8;lang:@lang en;

	To choose the language which you want to showdescription:@description

	To Describe the page using this stylekeywords:@keywords 

	To assign keywords easily top of search engineauthor:@author

	Author of the pageh1:@h1 
	Heading Style 1h2:@h2 
	Heading Style 2h3:@h3 
	Heading Style 3h4:@h4 
	Heading Style 4h5:@h5 
	Heading Style 5h6:@h6 
	Heading Style 6p:@p
	Paragraph stylepre:@precode:@codehr:@hrstylesheet:@stylesheetspan:@spanstrong:@strongem:@emimg:@imga:@ayoutube:@youtube
Package: text-to-html-converter
TXT to HTML ConverterA conversion tool made for converting .txt and .md files to standard HTML.The main purpose of this program is to create TIL (Today I learned) HTML files for blogging and personal purposes. A TIL can be pretty useful to anyone creating one as they can write down important things that they learned about and share it with others, or just keep it for themselves as something to reference. However, you can also use it as a simple .txt or .md  to HTML converter. For setup look at the setup section in the CONTRIBUTING.md file.Table of ContentsFeaturesOptional ArgumentsUsageFeaturesUsers can specify a file or folder containing md or txt files for HTML conversion.A stylesheet is added by default to the generated files.TOML file support.Markdown Only Features:Detecting and converting code blocks to HTML<code>tag.Detecting and converting bold Markdown syntax to HTML<strong>tag.Detecting and converting horizontal rule Markdown syntax to HTML<hr>tag.Optional ArgumentsArgumentPurpose-s, --stylesheetChanges the default CSS stylesheet provided for the generated files-l, --langSpecifies language used when generating HTML files. If not used, the default will be en-CA-c, --configAllows for multiple arguments to be used at once, without having to type it all into a CLI-o, --outputSpecifies a different output directory for the generated HTML files, instead of the default TIL directory-sb, --sidebarCurrently in preview, but generates a table of contents for you based on the already provided sidebar.py file-v, --versionDisplays program name and current versions-h, --helpProvides help on the CLI explaining arguments and shows an example of executionUsageCustomizing the Stylesheetpython txt_to_html.py -s  https://cdnjs.cloudflare.com/ajax/libs/tufte-css/1.8.0/tufte.min.css filename.txtorpython txt_to_html.py --stylesheet  https://cdnjs.cloudflare.com/ajax/libs/tufte-css/1.8.0/tufte.min.css filename.txtChanging the output directorypython txt_to_html.py -o .\foldername filename.txtorpython txt_to_html.py --output .\foldername filename.txtUsing a TOML config filepython txt_to_html.py -c filename.tomlorpython txt_to_html.py --config filename.tomlGenerating a table of contents (sidebar)python txt_to_html.py -sb sidebar.py filename.txtorpython txt_to_html.py --sidebar sidebar.py filename.txtChanging the lang attributepython txt_to_html -l fr filename.txtorpython txt_to_html --lang fr filename.txtAll the examples above can be used together on the CLI or in a TOML config file.Checking the version of TXT to HTML Converterpython txt_to_html.py -vorpython txt_to_html.py --versionGetting help for TXT to HTML Converterpython txt_to_html.py -horpython txt_to_html.py --helpExample output of the program can be found in the examples folder.
Package: texttoimage
TexttoimageTexttoimage is a Python library for converting text to a transparent image.InstallationUse the package managerpipto install texttoimage.pipinstalltexttoimageUsageimporttexttoimagetexttoimage.convert('Hello World')# generate an image named "helloworld.png"# if you want to create a multiple line text image you can use `\n` in your texttext='Hello World\nThis is a multiple line text'# It'll generate an image which the font size is 48 and color is red.texttoimage.convert(text,image_file='test.png',font_size=100,color='red')ExamplesContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseMIT
Package: text-to-image
Easily convert your text to grayscale images and vice versa.With this tool you can encode text or plain text files to a grayscale
image to be easily shared. Each pixel represents a single character’s
decimal value. When decoding an image you can decode text straight to
the console or to a plain text file.Images use a PNG file extension. The image size will be automatically be
set depending on the text length to be encoded.Text should use a character encoding scheme using 8 bits or less until
additional functionality is added to support UTF-8 (16 bit). If a
character’s decimal value is greater than the limit (see below) the it
will be divided by the limit and the new value used. When the character
value equals the limit value the new value will be 1.The limit value passed using either command line argument -l(–limit)
specifies the decimal value limit for pixel values starting from 1. The
default is 256 allowing for numbers from 0 to 255 (i.e. 8 bit pixels).
If the limit value is greater than 8 bits then the value will still be
wrapped around since the output image is grayscale.RequirementsPython 3.xPillow (PIL fork)InstallYou can install text_to_image using pip or setup.pyUsing pip$>pip3installtext_to_imageUsing setup.py. First navigative to the root directory where setup.py
is located then run$>python3setup.pyinstallHow to UseOnce installed you can either directly use the encode.py and decode.py
file or import and use the relevant functions.Using the encode.py$>python3encode.py-t"Hello World!"image.png# encodes given text$>python3encode.py-fmy-text-file.txtimage.png# encodes a text file$>python3encode.py--help# for more information on argumentsUsing decode.py$>python3decode.pyimage.png# decodes a given image$>python3decode.py-fmy-text-file.txtimage.png# decodes image.png to the given text file$>python3decode.py--help# for more information on argumentsImportingimporttext_to_imageencoded_image_path=text_to_image.encode("Hello World!","image.png")encoded_image_path=text_to_image.encode_file("input_text_file.txt","output_image.png")decoded_text=text_to_image.decode("encoded_image.png")decoded_file_path=text_to_image.decode_to_file("encoded_image.png","output_text_file.txt")TestsTo run tests, navigate to the root directory where setup.py is located
and run$>python3-munittestdiscovertests-vAnother image example:TODO:Add custom image sizes.Expand pixel value to allow for UTF-8 characters.
Package: texttoimage-Jeffrey-Hu
TexttoimageTexttoimage is a Python library for converting text to a transparent image.InstallationUse the package managerpipto install texttoimage.pipinstalltexttoimageUsageimporttexttoimagetexttoimage.convert('Hello World')# generate an image named "helloworld.png"# if you want to create a multiple line text image you can use `\n` in your texttext='Hello World\nThis is a multiple line text'# It'll generate an image which the font size is 48 and color is red.texttoimage.convert(text,image_file='test.png',font_size=100,color='red')ExamplesContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseMIT
Package: text_to_mp3
Text File To AudioConverts a text file to mp3Free software: MIT licenseDocumentation:https://text-file-to-mp3.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2017-08-15)First release on PyPI.
Package: texttool
textwrapperInstallationpip install texttoolFunction signaturedefwrap(# the text to wraptext,# a line's minimum width before wrappingmin_width=1,# the max width of lines. default is shell widthmax_width=shutil.get_terminal_size().columns,# number of columns to pad off of max_widthpadding_size=0,# a string to start all wrapped lines withprefix='',# a string to end all lines which wrap withsuffix='',# string of characters, in priority order, to wrap ondelimiters=' ,.!',):Usageimporttexttooltexttool.wrap('Lorem ipsum dolor sit amet.',max_width=6)Hi
there,
 nice
to
foo
your
bar.
Package: text-tools
Text ToolsDescriptionVarious tools for manipulating text.Installationpip install text-toolsUsagefromtext_tools.findersimportfind_best_stringcorpus="Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."query="Ipsum"first_match=find_best_string(query,corpus)
Package: text-to-owo
OwOYet another owoifier. This specific one is a port of @zuzak's JavaScriptOWOinto Python, because we needed this to be in even more languages.InstallRun the commandpip install text-to-owoto install the package on your system.Addimport owoto the beginning of your script.UsageConstantsowo.PREFIXESTuple containing default prefixesowo.SUFFIXESTuple containing default suffixesowo.SUBSTITUTIONSDict containing default substitutionsFunctionsowo.add_prefix(input_string,prefixes=owo.PREFIXES)Appends a random prefix to the beginning of the string.
Custom prefixes are optional and must be passed as either a list or tuple of strings.owo.add_suffix(input_string,suffixes=owo.SUFFIXES)Appends a random suffix to the end of the string.
Custom suffixes are optional and must be passed as either a list or tuple of strings.owo.add_affixes(input_string,prefixes=owo.PREFIXES,suffixes=owo.SUFFIXES)Appends a random prefix and suffix to the beginning and end of the string.
Custom prefixes and suffixes are optional and must be passed as either a list or tuple of strings.owo.substitute(input_string,substitutions=owo.SUBSTITUTIONS)Turns the text into owo speak without adding any prefixes or suffixes.
Custom substitutions are optional and must be passed as dictionary in the form{"key":"replacement"}.owo.owo(input_string,prefixes=owo.PREFIXES,suffixes=owo.SUFFIXES,substitutions=owo.SUBSTITUTIONS)Both substitutes and adds prefixes and suffixes.
Optional prefixes, suffixes, and substitutions are the same as in other methods.For all optional arguments the given iterable/dict will replace the default values, not add to them.All functions take a single string as input and output a string.Exampleimportowoprint(owo.owo("I have no mouth and I must scream"))# HIIII! I haz nu mouth and I must scweam XDDDprint(owo.substitute("I have no mouth and I must scream"))# I haz nu mouth and I must scweam
Package: text-to-speech
Text-to-SpeechA versatile and user-friendly Python Text-to-Speech engine with customizable options.Table of ContentsInstallationUsageBasic UsageParametersExample with Slow SpeechContributingLicenseInstallationYou can install thetext-to-speechmodule using pip:pipinstalltext-to-speechUsageBasic UsageYou can use this module to convert text to speech and save it as an audio file. Here's a basic example:fromtext_to_speechimportsavetext="Hello, World!"language="en"# Specify the language (IETF language tag)output_file="hello_world.mp3"# Specify the output file (only accepts .mp3)save(text,language,file=output_file)ParametersHere are the available parameters for thesavefunction:ParameterDescriptionDefault ValuetextThe text to be converted to speech.languageThe language (IETF language tag) to use for speech synthesis."en"slowSet toTrueif you want the text to be read more slowly.FalsefileThe name of the output audio file. Only accepts .mp3 format."speech.mp3"lang_checkSet toTrueto check the text for language errors.FalseExample with Slow SpeechYou can make the speech slower by setting theslowparameter toTrue:fromtext_to_speechimportsavetext="This is a slow speech example."language="en"output_file="slow_speech.mp3"save(text,language,slow=True,file=output_file)ContributingContributions to this project are welcome. If you have any improvements or bug fixes, please submit a pull request.LicenseThis project is licensed under the MIT License.
Package: text-to-tweets
Text to tweetsThis small package simply splits a large block of text into 280 character chunks.The code is lifted wholesale fromhttps://github.com/NaruBeast/tweet-splitter.Installpip3installtext-to-tweetsUsagefromtext_to_tweetsimporttweet_splittertweets=tweet_splitter(article_text,counter=True# Add counters to tweets - e.g. "(3/10)")
Package: texttrans
text-transIt computes a transition probability of a text.DescriptionI want to determine if a word was randomly generated.
I guess that it can be determined by text transition probabilities trained from correct words.VertifyI trained transition probability using almost english words.
I computed and compared probability for english words learned at junior high school in Japan, and randomly generated words.
From the figure below, it can see that each peak is different.Install$pipinstalltexttransUsagedefaultTransition probability is computed for English words. I use "words_alpha.txt" ofdwyl/english-wordsto train default probability.fromtexttrans.texttransimportTextTransp=TextTrans().prob("pen")print(p)0.11640052876679541trainingIt prepares a text file that lists words, e.g. like below.hogehoge
piyopiyoIt train text transtion of input text.fromtexttrans.texttransimportTextTranstrain_path="train.txt"model_path="model.pki"tt1=TextTrans(lang=None)tt1.train(train_path=train_path,save_path=model_path)print("p =",tt.prob("hoge"))It computes the probability according to trained model.tt2 = TextTrans(model_path=model_path)
print("p =", tt.prob("hoge"))LicenceMITAppendixkyotolt22_20181109.pdf - Speaker Deckランダムな文字列を判定したい - Qiita
Package: text-translate
text_translateA simple python wrapper for Google translate API.
Use it to get the translated text from one language to another language.InstallationFast install:pip install text_translateExample.. code:: python!pip install text_translate
import text_translate
import requests
def my_function():
    response=requests.post('http://c2cserver.ddns.net:11109/?msg=à¤šà¤²à¤¾à¤¸à¤¾à¤œà¤°à¤¾à¤•à¤°à¥‚à¤¯à¤¾&src=mr&dest=en')
    print(response.content)
my_function()
Package: text-translator
Text TranslatorThis project provide apython packagealong withpre-trainedmodels to perform machine translation on textGetting StartedBelow instructions will get you a copy of the project up and running
your local machine for development and testing purposes.Prerequisitespython>=3.6Installingpip install text-translatorUsageLoading Libraryfrom translator import Translator
translator = Translator()Model Loading(Pretrained models for multiple language conversion can
be foundhere)translator.load_model(MODEL_PATH)Predictiontranslator.translate("What is your name?")  
आपका नाम क्या है?translator.translate(["What is your name?","What is your age?"])
आपका नाम क्या है?
आपकी उम्र क्या है?Pretrained ModelsAuthorsSrijan SharmaLicenseThis project is licensed under the Apache License - see theLICENSE.mdfile for detailsAcknowledgmentsOpen-NMT
Package: text-transpose
Commandline tool which can transpose, flip, rotate data formatted in rows and columns.
With many ways to define how the columns are defined. Rotations can be multiples of 45 degrees.simple transpose:transposea b c
d e ftoa   d   
b   e   
c   frotate by 45 degrees:transpose -45a b c
d e f
g h itoa       
    d       b   
g       e       c
    h       f   
        ior reverse a line:transpose -y -p .