Saravanan666/pypi-org huggingface dataset:
Package: vietnamese-poem-classifier
Vietnamese poem classification and evaluation 📜🔍A Vietnamese poem classifer usingBertForSequenceClassificationwith the accuracy of99.7%This is a side project during the making of ourVietnamese poem generatorFeaturesClassify Vietnamese poem into categories of4 chu,5 chu,7 chu,luc batand8 chuScore the quality of each poem, based soldly on its conformation to the rigid rule of various types of Vietnamese poem. Using 3 criterias: Length, Tone and Rhyme as follow:score = L/10 + 3T/10 + 6R/10The rules for each genre are defined below:GenreLengthToneRhyme4 chu- 4 words per line- 4 lines per stanza (optional)For each line:- If the 2nd word is uneven (trắc), the 4th word is even (bằng)- Vice versaLast word (4th) of each line:- Continuous rhyme (gieo vần tiếp)- Alternating rhyme (gieo vần tréo)- Three-line rhyme (gieo vần ba)5 chu- 5 words per line- 4 lines per stanza (optional)Same as "4 chu"Same as "4 chu"7 chu- 7 words per line- 4 lines per stanza (optional)For each line:- If the 2nd word is uneven (trắc), the 4th word is even (bằng), the 6th word is uneven (trắc)- 5th word and last word (7th) must have different toneThe last word of 1st, 2nd, 4th line per stanza must have same tone and rhymeluc bat- 6 words in odd line- 8 words in even line- 4 lines per stanza (optional)For 6-word line:- If the 2nd word is uneven (trắc) the 4th word is even (bằng), the 6th word is uneven (trắc)For 8-word line:- Must be same as previous 6-word line- The last word (8th) mut have same tone as 6th word but different accentThe last word (6th) in 6-word line must rhyme with the 6th word in the next 8-word line and the 8th word in the previous 8-word line8 chu- 8 words per line- 4 lines per stanza (optional)For each line:- If the 3rd word is uneven (trắc), the 5th word is even (bằng), the 8th word is uneven (trắc)Same as "4 chu"DataA collection of 171188 Vietnamese poems with different genres: luc-bat, 5-chu, 7-chu, 8-chu, 4-chu. DownloadhereFor more detail, refer to theAcknowledgmentssectionTrainingTraining code is in our repoVietnamese poem generatorRun:python poem_classifier_training.pyInstallationpip install vietnamese-poem-classifierOrpip install git+https://github.com/Anshler/vietnamese-poem-classifierInferencefromvietnamese_poem_classifier.poem_classifierimportPoemClassifierclassifier=PoemClassifier()poem='''Người đi theo gió đuổi mâyTôi buồn nhặt nhạnh tháng ngày lãng quênEm theo hú bóng kim tiềnBần thần tôi ngẫm triền miên thói đời.'''classifier.predict(poem)#>> [{'label': 'luc bat', 'confidence': 0.9999017715454102, 'poem_score': 0.75, 'l_score': 1.0, 't_score': 1.0, 'r_score': 0.5833333333333333}]ModelThe model's weights are published at HuggingfaceAnshler/vietnamese-poem-classifierAcknowledgmentsThis project was inspired by the evaluation method fromfsoft-ailab'sSP-GPT2 Poem-GeneratorDataset also taken from their repo
Package: vietocr
VietOCRCác bạn vui lòng cập nhật lên version vietocr>=0.3.11 để không xảy ra lỗi.Trong project này, mình cài đặt mô hình Transformer OCR nhận dạng chữ viết tay, chữ đánh máy cho Tiếng Việt. Kiến trúc mô hình là sự kết hợp tuyệt vời giữ mô hình CNN và Transformer (là mô hình nền tảng của BERT khá nổi tiếng). Mô hình TransformerOCR có rất nhiều ưu điểm so với kiến trúc của mô hình CRNN đã được mình cài đặt. Các bạn có thể đọctạiđây về kiến trúc và cách huấn luyện mô hình với các tập dữ liệu khác nhau.Mô hình VietOCR có tính tổng quát cực tốt, thậm chí có độ chính xác khá cao trên một bộ dataset mới mặc dù mô hình chưa được huấn luyện bao giờ.Cài ĐặtĐể cài đặt các bạn gõ lệnh saupip install vietocrQuick StartCác bạn tham khảo notebooknàyđể biết cách sử dụng nhé.Model ZooThư viện này cài đặt cả 2 kiểu seq model đó là attention seq2seq và transfomer. Seq2seq có tốc độ dự đoán rất nhanh và được dùng trong industry khá nhiều, tuy nhiên transformer lại chính xác hơn nhưng lúc dự đoán lại khá chậm. Do đó mình cung cấp cả 2 loại cho các bạn lựa chọn.Mô hình này được huấn luyện trên tập dữ liệu gồm 10m ảnh, bao gồm nhiều loại ảnh khác nhau như ảnh tự phát sinh, chữ viết tay, các văn bản scan thực tế.
Pretrain model được cung cấp sẵn.Kết quả thử nghiệm trên tập 10mBackboneConfigPrecision full sequencetimeVGG19-bn - Transformervgg_transformer0.880086ms @ 1080tiVGG19-bn - Seq2Seqvgg_seq2seq0.870112ms @ 1080tiThời gian dự đoán của mô hình vgg-transformer quá lâu so với mô hình seq2seq, trong khi đó không có sự khác biệt rõ ràng giữ độ chính xác của 2 loại kiến trúc này.DatasetMình chỉ cung cấp tập dữ liệu mẫu khoảng 1m ảnh tự phát sinh. Các bạn có thể tải về tạiđây.LicenseMình phát hành thư viện này dưới các điều khoản củaApache 2.0 license.Liên hệNếu bạn có bất kì vấn đề gì, vui lòng tạo issue hoặc liên hệ mình tạipbcquoc@gmail.com
Package: vietokenizer
VieTokenizerThis model architecture that we use is a simple bi-lstm network trained by unsupervised learning on a large pre-segmented dataset. The model will predict if serial word is 1 and non-serial is 0, for example, "Tôi tên là Nguyễn Tiến Đạt" will be equivalent to a sequence of numbers with both zero and one being [0, 0, 0, 0, 1, 1].Installation 🎉This repository is tested on python 3.7+ and Tensorflow 2.8+VieTokenizer can be installed using pip as follows:pip install vietokenizer 🍰VieTokenizer can also be installed from source with the following commands:git clone https://github.com/Nguyendat-bit/VieTokenizer
cd VieTokenizer
pip install -e .Usage 🔥>>>importvietokenizer>>>tokenizer=vietokenizer.vntokenizer()>>>tokenizer('Tôi tên là Nguyễn Tiến Đạt, hiện là sinh viên Đại học CN GTVT tại Hà Nội.')'Tôi tên là Nguyễn_Tiến_Đạt , hiện là sinh_viên Đại_học CN GTVT tại Hà_Nội .'>>>tokenizer('Kim loại nặng thường được định nghĩa là kim loại có khối lượng riêng, khối lượng nguyên tử hoặc số hiệu nguyên tử lớn.')'Kim_loại nặng thường được định_nghĩa là kim_loại có khối_lượng riêng , khối_lượng nguyên_tử hoặc số_hiệu nguyên_tử lớn .'LicenseApache 2.0 License.Copyright © 2022Nguyễn Tiến Đạt. All rights reserved.
Package: vietqr-generator
VietQR Generation LibraryThis is a VietQR generation library.This library will help you to generate the VietQR Data String which align with VietQR Specification announced on 05/10/2022VietQR Library specification:Generation function:VietQR.genQRString(is_dynamic_qr, merchant_category, merchant_name, merchant_city, postal_code, currency, country_code, amount, acq, merchant_id, service_code, bill_number, mobile_number, store_label, loyalty_number, ref_label, customer_label, terminal_label, purpose_txn, additional_data, lang_ref, local_merchant_name, local_merchant_city, uuid, ipn_url, app_package_name)The detail variables:is_dynamic_qr:'False' for static QR'True' for dynamic QRmerchant_category: defined by ISO 18245 and assigned by Payment Instituation.postal_code: Postal code,Ex: postcode = 70000 for Vietnamcurrency: defined by ISO 4217, for Vietnam:currency = 704country_code: defined by ISO ISO 3166-1 alpha 2, for Vietnam:country_code = VNamount: Total amount (including TIP) of billacq: Acquirer bank code defined by Vietname State Bank.service_code: VietQR service code as followingQRPUSH: Payment service code by QRQRIBFTTC: Inter-Bank Fund Transfer 24/7 to Card service code by QRQRIBFTTA: Inter-Bank Fund Transfer 24/7 to Account service code by QRmerchant_id:  as followingfor QRPUSH: Merchant ID will be provided by Acquirer bank.for QRIBFTTC: Merchant ID will be your ATM card number which started with '9704...'.for QRIBFTTA: Merchant ID will be your bank account.purpose_txn: payment/transfer purposeOther extended and optional variablebill_number: Your bill numberterminal_label: Your terminal IDstore_label: Your store namemobile_number: Your customer mobile phonenumberloyalty_number: Your customer loyalty numbeercustomer_label: Your customer IDref_label: Your reference infoTo use this library, do as followingImport the library:from vietqrlib import VietQRGenerate the VietQR data string:Example for money transfer VietQR:vietQRString = VietQR.genQRString(merchant_id="660704060000129",
acq=VietQR.getBincode('VIB'),
amount="50000",
service_code="QRIBFTTA",
ipn_url="abc"
)print(f"{vietQRString}")The result: 00020101021238590010A0000007270141000697044101156607040600001290208QRIBFTTA5204581253037045405500005802VN5901_6011HO CHI MINH99210010A0000007270203abc63045859Then you can use anyQRcodelibrary to generate the VietQR and the result as following:SupportingAny questions please send us a comment via email:community@thebeanfamily.org.
Package: viet-text-tools
Functions for working with Vietnamese textInstallationTo get the latest stable release from PyPipipinstallviet_text_toolsUsagenormalize_diacritics()You can normalize diacritics for a Vietnamese word.  The return value is in composed (NFC) formnormalize_diacritics('nghìên')=='nghiền'Passnew_style=Trueto use new style tone placementnormalize_diacritics('thủy',new_style=True)=='thuỷ'Passdecomposed=Trueto return a string in decomposed (NFD) formlen(normalize_diacritics('thủy'))==4len(normalize_diacritics('thủy',decomposed=True))==5vietnamese_sort_key()A key function for use with sorted() to sort Vietnamese text with the correct collation orderwords=['anh','ba','áo','cắt','cá','cả']sorted(words)==['anh','ba','cá','cả','cắt','áo']sorted(words,key=vietnamese_sort_key)==['anh','áo','ba','cả','cá','cắt']vietnamese_case_insensitive_sort_key()Same asvietnamese_sort_key()but case-insensitive.
Package: vietvoice
VietvoiceText to speech for VietnamChuyển đổi văn bản thành giọng nói sử dụng tacotron2. Đối với Tiếng Việt, input của mô hình là các phoneme.Thư viện được tạo ra với mục đích là đơn giản để sử dụng. Các bạn có thể sử dụng pretrained model đã được huấn luyện sẵn cho các ứng dụng khác.Cài đặtThư viện yêu cầu:pytorch >= 1.10Cài đặt Vietvoicepip install vietvoiceDữ liệuTiền xử lý textCác bạn lưu ý rằng text đầu vào được chuyển thành phoneme sau đó mới được input vào model. Việc tiền xử lý text để đảm bảo rằng các từ đều có thể chuyển được thành phoneme làcực kì quan trọng. Việc tiền xử lý phụ thuộc vào dữ liệu của các bạn như thế nào, nên phần xử lý này các bạn cần phảitự xử lýcho phù hợp với dữ liệu của mình.Train & InferenceCác bạn tham khảonotebooknày.Synthesis speechChất lượng giọng nói theo nhận xét của mình là rất tốt.ProblemNếu có vấn đề gì vui lòng tạo issue hoặc liên hệ mình tạipbcquoc@gmail.com
Package: viewable
ViewableImplement better Views for your Tkinter Python appThis project is part of thePyrustic Open Ecosystem.Installation|ReferenceOverviewViews are the building blocks of your desktop application GUI.Viewableallows you to implement Views that are maintainable and easily extensible. Viewable defines a View in terms of its lifecycle. And so, you can split your source code to align with the main states a View goes through:init,build,map, anddestroy.Here's how to implement a View withViewable:importtkinterastkfromviewableimportViewableclassView(Viewable):def__init__(self,master):super().__init__()self._master=masterdef_build(self):"""This is the only mandatory method to implement.You define the body of the view here"""# the body is generally either# a tk.Frame instance# or a tk.Toplevel instanceself._body=tk.Frame(self._master)label=tk.Label(self._body,text="Hello Friend !")label.pack()def_on_map(self):""" This method is called when the view is mapped for the first time """def_on_destroy(self):""" This method is called when the view is destroyed """# rootroot=tk.Tk()# the viewview=View(root)# the method build_pack() builds then packs the view# In fact you could do:#   view.build() then view.pack()# or:#   view.build() then view.body.pack()view.build_pack()# it accepts arguments like the Tkinter pack() method# others ways to install a view:# .build_grid(), .build_place(), .build_wait()# you can access the body of the view via# its .body propertyview.body# here, the body is a tk.Frame# To destroy a view, call the method .destroy()view.destroy()# The .state property reveals the state of the view:# 'new', 'built', 'mapped', 'destroyed'.print(view.state)# mainlooproot.mainloop()Installationpipinstallviewable
Package: view-animator
View AnimatorThis package allows you to programmatically change the camera view for a variety of environments
(for example pybullet simulation, and RViz visualization).InstallationTODO after packaging for PYPIUsageThe core of it is an animator object and itsupdate()method. You can eitherupdate()the animator
manually, or automatically in a separate daemon thread.Example automatic orbiting animationfromview_animatorimportanimate_view_in_backgroundfromview_animator.pybullet_animatorimportPybulletOrbitterimportpybulletaspp.connect(p.GUI)# other simulator configurations# animate an orbit in the background at a distance of 0.5 away from the originorbiter=PybulletOrbitter(update_period=0.01,dist=0.5,target=(0,0,0))animate_view_in_background(orbiter)# set up objectsp.setRealTimeSimulation(1)whileTrue:# do sim computationstime.sleep(0.001)Manual updating of an RViz orbiterfromview_animator.rviz_animatorimportRVizOrbiterimportrospyorbiter=RVizOrbiter(period=5,world_frame="world")rate=rospy.Rate(1/orbiter.update_period)whilenotrospy.is_shutdown():# visualization and other processingorbiter.update()rate.sleep()AnimatorsWhile you can subclassview_animator.base_animator.ViewAnimatordirectly to suit your specific environment
and desired animation, there are a few predefined animators listed below. Note that you do not have to
have the environment installed to install this package.PybulletInstall pybullet withpip install pybulletview_animator.pybullet_animator.PybulletOrbitterfor orbitting around a position with fixed pitch at a constant rateRVizRequires therviz_animated_view_controllerplugin that can be installed withsudoaptinstallros-<ros-distro>-rviz-animated-view-controllere.g.sudoaptinstallros-noetic-rviz-animated-view-controllerview_animator.rviz_animator.RVizOrbitterfor orbitting around a position with fixed pitch at a constant rate
Package: viewasuser
Project descriptionDjango View As user is a middleware that provides login in as any user functionality. It is modification ofdjango-view-aspackage. The django-view-as is not supported on django 2 and newer version, so I have modified the package.User a shortcut key to switch userLogin to Django application as any userSwitch Back to original userInstallationInstall the package:pip install viewasuserAdd installed app:INSTALLED_APPS = [
    'django.contrib.auth',
    'django.contrib.sessions',
    'viewasuser',
]Add the middleware:MIDDLEWARE = [
    'viewasuser.middleware.ViewAsMiddleware',

]UsageLoad any page with an html response type, hit the tilda key (~), and you’ll see a new toolbar at the bottom of the page. Enter a username to change who you’re viewing the site as.Configure the menu toggle keyThe following configuration option could be set in your settings.py to change the default keystroke to toggle the “View as” menu. Its value is the javascript key number that will be matched in the keydown event handler.VIEWAS_TOGGLE_KEY = 192LicenseMIT
Package: viewclust
ViewClustPython package for computing cluster measures.Free software: MIT licenseDocumentation:https://viewclust.readthedocs.io.FeaturesCalculates job usage based on inputs from Slurm or other formatted data framesPlots cumulative and instantaneous usageAccepts dynamic targets for account and system analysisProvides a basic interface for generating job data frames from SlurmFor more plotting options and dashboard suites see theViewClust-Vispackage.CreditsTyler CollinsJames DesjardinsSergiy KhanPier-Luc St-OngeJose Sergio HleapChris WantDeveloped for:SHARCNETCompute CanadaThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.8.0 (2023-02-02)Add eligible queued metricBump internal package versions0.7.3 (2021-09-07)Fix end time sacct bugSpecify protocol for pickle output format0.7.2 (2021-09-03)Add alloctres to sacct fields0.7.1 (2021-09-03)Reimplement serialization of sacct frames0.7.0 (2021-09-02)Refactor/add new sacct polling script to be much more robust0.6.1 (2021-07-20)Optimize job use calculations0.6.0 (2021-01-14)Add support for horizon measures when studying job usage0.5.0 (2020-10-28)Code linting fixesRevert modern plotting features and added to ViewClust-VisJob use now calculates more theoretical linesAdded return handles for figures that were missing themAdded parameter for groupby frequency inside of job use0.4.5 (2020-09-15)Bug fix on sacct poller0.4.4 (2020-09-14)Added ability to sacct poll all accounts in slurm submodule0.4.3 (2020-07-22)Refactor calculations for eqv use_unit measuresCompleted support for gpu eqv usage calculations0.4.2 (2020-07-15)Minor formatting to mem info parsing0.4.1 (2020-07-13)Can now serialize user runCrediting Sergio!0.4.0 (2020-07-07)Add new support for plotting to the terminalBug fix stderr output0.3.2 (2020-06-25)Docs update for new changes0.3.1 (2020-06-24)Bug fix for the init py file0.3.0 (2020-06-24)Major versioning bumpUser area colouring in usage figuresMem info plotting supportSerialization of userRemoved violin plot. Moved to ViewClust-VisRemoved use_suite. Moved to ViewClust-VisRemoved job_stack. Moved to ViewClust-VisDeprecated cumu/insta plotting function. Supported versions moved to ViewClust-Vis0.2.2 (2020-05-07)Added support for user breakdown of activity on plots0.2.1 (2020-04-14)Fixed other half of instaplot bug0.2.0 (2020-04-14)Fix use suite string passing bug0.1.9 (2020-04-14)Fix insta plot pre reference bug0.1.8 (2020-04-09)Fix syntax based errors0.1.7 (2020-04-09)Fix failing doc build0.1.6 (2020-04-09)GPU usage added backREADME fixes to include credits and featuresFigures now return their handles for extra processing if neededFigures can now have their polling rates downsampled for ease of sharingPrepared responses for figures section added in to documentation0.1.5 (2020-03-12)Inclusion of API documentation0.1.4 (2020-03-11)Overhauled the documentation usage section0.1.3 (2020-03-03)Reduced versioning complexity0.1.2 (2020-03-03)Testing distributions changed0.1.1 (2020-03-03)File inclusion0.1.0 (2020-03-03)First release on PyPI.
Package: viewclust-vis
ViewClust-VisExtension to ViewClust containing dashboard submodules and more.Free software: MIT licenseDocumentation:https://viewclust-vis.readthedocs.io.FeaturesComplete user account usage diagnosis suiteAll users information packagePartition perfomance dashboardsMore!CreditsTyler CollinsJames DesjardinsDeveloped for:SHARCNETCompute CanadaThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.4.0 (2023-02-02)Add eligible queued metricsBump package versions0.3.0 (2020-10-28)Updated required version of ViewClustAdded numerous figures to show_job_use diagnosticsAdded ability to return figure handles of all show_job_use figuresLinting fixes EVERYWHERE0.2.2 (2020-07-25)Reworked default use_unit queries - tries to infer proper use_unit from context!0.2.1 (2020-07-15)Formatting fixes for show job use suite0.2.0 (2020-07-13)Added show job use account diagnostic suite0.1.1 (2020-06-25)Added migrated filesFixed doc building0.1.0 (2020-06-24)First release on PyPI.
Package: viewdns-python
viewdns-pythonviewdns-pythonis a Python library for interacting with theViewDNS.infoAPI.InstallationUse the package managerpipto install viewdns-python.pipsetup.pyinstallUsageimportviewdnsclient=viewdns.Client('your-api-key')Featuresviewdns-pythondoes not support all the toolsyet. Below is a list of what iscurrently supported:DNS Record LookupGet HTTP HeadersIP Location FinderDNS Record Lookupdns_records=client.get_dns_records('twitter.com')print(dns_records)# [<DNSRecord> {name=twitter.com., ttl=293, class_=IN, type=SOA, priority=None, data=ns1.p26.dynect.net. zone-admin.dyndns.com. 2007158928 3600 600 604800 60, class=IN}, ...]Get HTTP Headershttp_headers=client.get_http_headers('twitter.com')print(http_headers)# [<HTTPHeader> {name=http_status, value=301}, ...]IP Location Finderip_location=client.get_ip_location('11.11.11.11')print(ip_location)# <IPLocation> {city=Bullard, zipcode=75757, region_code=TX, country_code=US, country_name=United States, latitude=32.1095, longitude=-95.3342, gmt_offset=, dst_offset=, region_name=Texas}TestingDockerBuild the container.docker build -t viewdns-python-tests .Run the tests.docker run viewdns-python-testsLinksViewDNS.info API DocumentationContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.LicenseMIT
Package: viewdom
ViewDOM: Component-Driven Development for PythonViewDOM brings modern frontend templating patterns to Python:taggedto have language-centered templating (like JS tagged templates)htmto generate virtual DOM structures from a template run (like thehtmJS package)ViewDOM for components which render a VDOM to a markup string, along with other modern machineryOptionally,Hopscotchfor a component registry with dependency injectionFeaturesComponent-driven development.Intermediate VDOM.Pass in data either via props (simple) or DI (rich).Emphasis on modern Python dev practices: explicit, type hinting,
static analysis, testing, docs, linting, editors.RequirementsPython 3.9+.viewdomtaggedhtm.pyMarkupsafeInstallationYou can install ViewDOM viapipfromPyPI:$pipinstallviewdomQuick ExamplesContributingContributions are very welcome.
To learn more, see thecontributor's guide.LicenseDistributed under the terms of theMIT license, ViewDOM is free and open source software.IssuesIf you encounter any problems,
pleasefile an issuealong with a detailed description.CreditsThis project was generated from@cjolowicz'sHypermodern Python Cookiecuttertemplate.
Package: viewephys
viewephysNeuropixel raw data viewerInstallationpip install viewephysAlternatively, in development mode:gitclonehttps://github.com/int-brain-lab/viewephys.gitcdviewephys
pipinstall-e.Supported environmentsThis is compatible with theIBL environmentOtherwise, you can create a new environment as such:condacreate-nviewephyspython=3.9
condaactivateviewephysAnd then follow the install instructions above.ExamplesVisualize raw binary fileActivate your environment and typeviewephys, you can then load a neuropixel binary file using the file menu.Alternatively you can point the viewer to a specific file using the command line:viewphys-f/path/to/raw.binLoad in a numpy array or slice# if running ipython, you may have to use the `%gui qt` magic commandimportnumpyasnpfromviewephys.guiimportviewephysnc,ns,fs=(384,50000,30000)# this mimics one second of neuropixel datadata=np.random.randn(nc,ns)/1e6# volts by defaultve=viewephys(data,fs=fs)ContributionFork and PR.Pypi Release checklist:flake8
rm-fRdist
rm-fRbuild
pythonsetup.pysdistbdist_wheel
twineuploaddist/*#twine upload --repository-url https://test.pypi.org/legacy/ dist/*
Package: viewflow-extensions
Viewflow ExtensionsUseful extensions fordjango-viewflow-pro.InstallationSimply install the latest stable package using the commandpip installviewflow-extensionsand add'viewflow_extensions'toINSTALLED_APPs in your
settings.py, that’s it!Note: This package officially only supports viewflow PRO. The free
version might work too.DocumentationThe latest documentation can be found atRead the Docs.ContributionPlease read theContributing Guidebefore you submit a pull request.