Saravanan666/pypi-org huggingface dataset:
Package: yturl
yturl gets direct media URLs to YouTube media, freeing you having to
view them in your browser.yturl is still maintained, but is pretty much “done”. Outside of changes to
match YouTube API changes, bug fixes, and support for newer Python versions,
development is complete.UsageBy default, yturl prints the media URL to standard output.$ yturl 'http://www.youtube.com/watch?v=8TCxE0bWQeQ'
Using itag 43.
http://r2---sn-uphxqvujvh-30al.googlevideo.com/videoplayback?source=[...]You can use this URL in the media player of your choice. For media players that
can be launched from the command line, this typically means that you can do
something like the following to watch it in your preferred player:$ <your-preferred-player> "$(yturl 'http://www.youtube.com/watch?v=8TCxE0bWQeQ')"There is also a-qoption for controlling the quality (for example-qhigh), seeyturl --helpfor more information.InstallationTo install the latest stable version from PyPi:$ pip install -U yturlTo install the latest development version directly from GitHub:$ pip install -U git+https://github.com/cdown/yturl.git@developTesting$ pip install tox
$ tox
..........
----------------------------------------------------------------------
Ran 10 tests in 4.088s
OK
Package: ytutils
ytutilsYouTube video & channel details extractorPypi WebsiteytutilsFeaturesExtract video detailsExtract channel detailsInstallationpipinstallytutilsVideo ExtractionImportingfromytutils.VideoimportVideoStep-1api_key="YOUR API KEY"vid=Video(api_key)Step-2try:vid.start(video_url="https://www.youtube.com/watch?v=hW7qJZK2UAc")# Or vid.start(video_id="hW7qJZK2UAc")except:pass# Error occurredStep-3details=vid.result()print(details['title'])Channel ExtractionImportingfromytuils.ChannelimportChannelStep-1api_key="YOUR API KEY"cha=Channel(api_key)Step-2try:cha.start(channel_url="https://www.youtube.com/channel/UC_yAFedtY2po4noljIqSM1w")# Or cha.start(channel_id="UC_yAFedtY2po4noljIqSM1w")except:pass# Error OccurredStep-3details=cha.result()print(details['title'])Contact meTwitter
Package: ytvs
TODO여유될때, extractor 부분 좀더 구조화 가능.또한, 각 Resource에서 비디오, 채널등 특화된 추출 코드들을 Extractor로 옮기고, YoutubeBasicInfoExtractor를 상속해서 구성하면
훨씬 깔끔할듯필요하면, TorNetwork를 이용해서 접근 IP를 감출 수 있음추후, 응답 데이터 빌드 단계는 분리하기.requests_oauth, pip install dataclasses-json, isodate, pip install python-youtube, webdriver_managerReferences - thanks[pyyoutube]https://github.com/sns-sdks/python-youtube/tree/a531987cf5f426170399f227ca07a85ecba1358f[Youtube-Local]https://github.com/search?q=repo%3Auser234683%2Fyoutube-local%20request_comments&type=code[Youtube-DL]https://github.com/ytdl-org/youtube-dl/blob/be008e657d79832642e2158557c899249c9e31cd/youtube_dl/extractor/common.py#L1014[Youtube-Crawler]https://github.com/jaryeonge/youtube-crawler/blob/5af1421ed4a76a1b9ca57ea968c936e63395675f/src/crawling_module/vod_meta.py#L141[Youtube-Search-Python]https://github.com/GHOSTEPROG-OFFICIAL/youtube-search-python/blob/main/youtubesearchpython/core/comments.py[Mining]https://github.com/medialab/minet/tree/82d862dbd434d6535a6bec23cfb7c35d864440c0https://github.com/x4nth055/pythoncode-tutorials/blob/cf194de63299b9a7de25cdd046721da172426e3b/web-scraping/youtube-extractor/extract_video_info.py#L2Updatepipinstall--upgradeytvsBuild and publishpoetrybuild# Buildpython-mtwineupload--skip-existingdist/*# DeploymentVersion history0.0.4API 파라미터는 Keyword parameter로 입력받도록 제약 걸기각 API 함수의 응답 타입 명시하기build_search_v1_resource_urlvideo.py 76 번째 줄, extract_comments_header_render 부분 수정DataParameterBuilder, kr -> KR 수정extract_comments_header_renderer, 입력 파라미터가 None인 경우 예외처리 추가extract_like_count, extract_view_count
-> number string 확인 후 예외 처리 추가 필요
Package: yt-xarray
yt_xarrayAn interface between yt and xarrayOverviewyt_xarray streamlines communication betweenxarrayandyt,
making it easier use yt's visualization and analysis methods with data loaded
via xarray.Presently, yt_xarray primarily adds methods to generate a yt dataset from a
subset of xarray dataset fields, without making copies of data when possible.For a more detailed description, check out the full documentation athttps://yt-xarray.readthedocs.io.Quick StartInstallationThe latest stable version can be installed usingpipwith:$ pip install yt_xarrayThis will install both xarray and yt if you are missing one or the other.UsageThe main access point is theYtAccessorobject for xarray. To
use it, simply importyt_xarrayand the.ytobject will be available to
xarray datasets. For example, to convert the xarray dataset into a full-fledged
yt dataset:importxarrayasxrimportyt_xarrayds=xr.open_dataset(...)yt_ds=ds.yt.load_grid()In this example,ds.yt.grid()returns a yt dataset using all of the fields in
the xarray dataset, ready to use with any yt command. This will, however, only
work if all of your data is defined on the same grid using coordinate names that
yt understands. So for more complex cases, see theexample notebooksand theFAQon how
to handle those cases.ExamplesCheck out theexample notebooksand theFAQfor examples and
descriptions of common issues.Getting HelpBug reports and questions are welcome viagithub issues.
You can also reach out via the yt slack channel
(see here for how to join) by messaging
Chris Havlin directly or posting in help (though you should tag @Chris Havlin in
your post to get a faster response.)ContributionsContributions are welcome, seeCONTRIBUTING.mdfor details.
Package: yu
安装$ pip install yuextractors - 数据提取数据提取，支持:FieldSkipField - 直接跳过PassField - 不做转换StringField - 字符串，支持长度验证IntegerField - 整数，支持最大、最小值验证FloatField - 浮点数DateField - 日期RowExtractorCSVExtractor示例csv.extract 的用法:importcsvfromyu.extractorsimportcsvascefields=[ce.StringField(min_length=2,max_length=4),# 姓名ce.SkipField(),# 民族ce.IntegerField(max_value=150),# 年龄ce.FloatField(min_value=5,max_value=200),# 体重ce.DateField(),# 生日ce.PassField(),# 备注]withopen('data/person.csv')asfp:reader=csv.reader(fp)forrowince.extract(reader,fields=fields):print(row)excel.extract 的用法importxlrdfromyu.extractorsimportexcelaseefields=[ee.StringField(min_length=2,max_length=4),# 姓名ee.SkipField(),# 民族ee.IntegerField(max_value=150),# 年龄ee.FloatField(min_value=5,max_value=200),# 体重ee.DateField(),# 生日ee.PassField(),# 备注]book=xlrd.open_workbook('data/person.xlsx')sheet=book.sheet_by_name('person')forrowinee.extract(sheet,fields=fields):print(row)utils - 其他工具包括cached_property - 代码来自 Django 项目InstanceMeta - 类的自动实例化Instance - 类的自动实例化（继承方式）InstanceMeta 示例fromyu.utilsimportInstanceMetaclassColor(metaclass=InstanceMeta,abstract=True):def__str__(self):returnf'{self.name}={self.value}'classRed(Color):name='red'value='FF0000'classGreen(Color):name='green'value='00FF00'print(Red)print(Green)formula用法：# 定义公式try:面积公式=Formula('面积 = 长 * 宽','长方形面积')exceptFormulaErrorasexc:print(exc)# 进行计算context={'长':16,'宽':15,}try:面积公式(context)exceptFormulaErrorasexc:print(exc)# 读取结果print(context['面积'])修改记录v0.5.02017-12-28 添加 yu.formulav0.4.12017-12-20 完善 yu.extractors, 封装返回值v0.4.02017-12-15 增加 argparseutils 模块，支持 DateType, DatetimeTypev0.2.22017-12-15 完善 extractors.excel 和 extractors.csvv0.2.12017-12-11 发布里增加 README.md, data/*v0.2.02017-12-10 添加 yu.extractors.excel，处理 Excel 文件的数据提取v0.1.12017-12-09 添加 yu.extractors.csv, 处理 CSV 文件的数据提取
Package: yuanfen
Yuanfen Python Librarybuild && upload$hatchbuild
$python3-mtwineuploaddist/*ConfigSupport .json, .yaml, .ini files.
Support auto reloading while config file changes.config_json=Config(os.path.abspath("config.json"))config_yaml=Config(os.path.abspath("config.yaml"))config_ini=Config(os.path.abspath("config.ini"))print(config_ini["app"]["config_a"])print(config_yaml["movie"]["name"])LoggerStream and TimedRotatingFile handlers for logging.logger=Logger(name="my-logger",level=logging.INFO)logger.debug("debug log")logger.info("info log")logger.warn("warn log")logger.error("error log")BaseResponse, SuccessResponse, ErrorResponseResponse models for fastapi.importuvicornfromfastapiimportFastAPIfromyuanfenimportSuccessResponseapp=FastAPI()@app.get("/health-check")defhealth_check():returnSuccessResponse(data="OK")if__name__=="__main__":uvicorn.run(app,host="0.0.0.0",port=8000)timefromyuanfenimporttimetime.format(dt=datetime.now(),format="%Y-%m-%dT%H:%M:%S")time.parse(dt_string="2023-11-25T10:51:19",format="%Y-%m-%dT%H:%M:%S")time.format_duration(90)GroupRobotWebhook group robotrobot=GroupRobot(webhook="your robot's webhook path")robot.send(data)
Package: yubiauth
== YubiAuthYubiAuth provides a user management system which can be used as a base for
other systems. It allows the creation of users, which can be authenticated by
username, password, and optionally a YubiKey OTP.Aside from providing a user authentication backend, YubiAuth allows storing
and retrieving arbitrary key-value attributes for each user as well as each
YubiKey.Though effort has been made to store password hashes securely, YubiAuth also
allows using a YubiHSM for increased security.
Package: yubico
# Yubico Python ClientPython class for verifying Yubico One Time Passwords (OTPs) based on the
validation protocol version 2.0.Yubico website: [http://www.yubico.com][1]Yubico documentation: [http://www.yubico.com/developers/intro/][2]Validation Protocol Version 2.0 FAQ: [http://www.yubico.com/develop/open-source-software/web-api-clients/server/][3]Validation Protocol Version 2.0 description: [https://github.com/Yubico/yubikey-val/wiki/ValidationProtocolV20][4]## Installationpip install yubico## Build Status[![Build Status](https://secure.travis-ci.org/Kami/python-yubico-client.png)](http://travis-ci.org/Kami/python-yubico-client)## Running Testspython setup.py test## UsageGenerate your client id and secret key (this can be done by visiting the
[Yubico website](https://api.yubico.com/get-api-key/))Use the clientSingle mode:from yubico.yubico import Yubicoyubico = Yubico(‘client id’, ‘secret key’)
yubico.verify(‘otp’)Multi mode:from yubico.yubico import Yubicoyubico = Yubico(‘client id’, ‘secret key’)
yubico.verify_multi([‘otp 1’, ‘otp 2’, ‘otp 3’])Theverifymethod will returnTrueif the provided OTP is valid
(STATUS=OK).Theverify_multimethod will returnTrueif all of the provided OTPs are
valid (STATUS=OK).Both methods can also throw one of the following exceptions:StatusCodeError- server returnedREPLAYED_OTPstatus codeSignatureVerificationError- server response message signature
verification failedInvalidClientIdError- client with the specified id does not exist
(server returnedNO_SUCH_CLIENTstatus code)Exception- server returned one of the following status values:BAD_OTP,BAD_SIGNATURE,MISSING_PARAMETER,OPERATION_NOT_ALLOWED,BACKEND_ERROR,NOT_ENOUGH_ANSWERS,REPLAYED_REQUESTor no response was received from any of the servers
in the specified time frame (default timeout = 10 seconds)[1]:http://www.yubico.com[2]:http://www.yubico.com/developers/intro/[3]:http://www.yubico.com/develop/open-source-software/web-api-clients/server/[4]:https://github.com/Yubico/yubikey-val/wiki/ValidationProtocolV20
Package: yubico-bitcoin
Yubico-bitcoin-pythonPython client library for communicating with the ykneo-bitcoin applet for the
YubiKey NEO.This library exposes the Bitcoin BIP32 functionality that ykneo-bitcoin
provides. It can be used to implement YubiKey NEO support for bitcoin wallets.UsingBesides being used as a library, yubico-bitcoin-python provies an executable
interactive command line tool: ykneo-bitcoin-cli
This tool can be used to configure the ykneo-bitcoin applet, get public keys,
create signatures, etc. To run, simply invoke:ykneo-bitcoin-cliDependenciesYubico-bitcoin-python requires the following packages:pyscard (https://pypi.python.org/pypi/pyscard).InstallingTo install, run:python setup.py install
Package: yubicoclient
YubiKey generates a One-Time Passcode (OTP) that your
application or service, ensuring that only users with
a valid YubiKey can gain access. This api will help you
to validate a OTP thus obtained against a yubico server.
Also supports custom Yubikey validation servers in
addition to the default Yubico servers.UsagefromyubicoclientimportYubicoClientclient=YubicoClient('<client id>','<key>')client.verify('<OTP>')Installationpip install yubicoclientUseful ResourcesyubicoYubico DocumentationSource CodeAbout Openlabs Technologies and Consulting Private LimitedOpenlabs Technologies and Consulting Private Limited is a
global Information Technology and Management Consulting
Company that helps small and medium businesses achieve high
efficiency with cost effective business solutions. With
customers and partners in four continents, Openlabs designs
and delivers technology enabled innovative business solutions
that addresses the needs of small and medium enterprises.Openlabs provides end to end solutions to businessess using
a range of Free and Opensource Solutions (FOSS) Implemented
by a team of highly skilled workforce comprising of domain
and business experts.The software division of Openlabs is a specialised division
of Rapid Application Development of business application with
a proven expertise in OpenERP (and OpenObject). Tryton and
Django.Technical SupportPhone: +1 813.793.6736 (USA)
Email:support@openlabs.co.inWeb: www.openlabs.co.in
Package: yubiconvert
YubiConvertYubiConvert - a Python module that can convert numeric words to their numerical form effortlessly. What's more, it supports both Western and Indian currency standards, making it the ultimate solution for all your numerical conversion needs.InstallationTo install the YubiConvert module, it is recommended to first ensure that you have updated the pip to the latest version. Then, you can use pip to install the module from the Python Package Index with the following command:pipinstallyubiconvertUsageOnce the module is installed, you can import it into your Python code using the following line:fromyubiconvertimportyubiconvertasw2nThen you can use theword_to_nummethod to convert a number-word to numeric digits, as shown below.print(w2n.word_to_num("twenty lakh three thousand nineteen Rupees"))2003019print(w2n.word_to_num('two point three'))2.3print(w2n.word_to_num('112'))112print(w2n.word_to_num('point one'))0.1print(w2n.word_to_num('one hundred thirty-five'))135print(w2n.word_to_num("there was a group of ten friends who went to the restaurant for a party, ordered thirty two dishes including ten drinks and bill came out as ten thousand five hundred and thirty paisa"))therewasagroupof10friendswhowenttotherestaurantforaparty,ordered32dishesincluding10drinksandbillcameoutas10500.3CreditsThis repo is a forked ofw2nlibrary and the same has been used as a base to extend it further to support indian currency standards.
Package: yubikey-piv-manager
== YubiKey PIV Manager
image:https://travis-ci.org/Yubico/yubikey-piv-manager.svg?branch=master[“Build Status”, link=”https://travis-ci.org/Yubico/yubikey-piv-manager”]Graphical application for configuring a PIV-enabled YubiKey.image::screenshot.png[]=== Installation
The recommended way to install this software including dependencies is by using
the provided precompiled binaries for your platform. For Windows and OS X (10.7 and above),
there are installers available for downloadhttps://developers.yubico.com/yubikey-piv-manager/Releases/[here].
For Ubuntu we have a custom PPA with a package for ithttps://launchpad.net/~yubico/+archive/ubuntu/stable[here].=== Usage guides
For information and examples on what you can do with a PIV enabled YubiKey,
seehttps://developers.yubico.com/PIV/
Package: yubikey-totp-gui
yubikey-totp-gui================GUI for TOTP with the YubiKey.Suitable for Two-Factor authentication with Gmail, Dropbox, Github, AWS etc.Installation============Installation with `pip` should be fairly straightforward, but `pyusb` may notinstall cleanly as pip will refuse beta software by default.You will likely need to install the beta version first:For the stable version:``pip install pyusb==1.0.0b1 yubikey-totp-gui``For the development version:``pip install pyusb==1.0.0b1 git+https://github.com/ldrumm/yubikey-totp-gui.git``Linux=====First, you will need Tkinter installed.Debian and derivates:``sudo apt-get install python-tk``Chances are high that Tkinter will already be installed on everything but afreshly installed OS.Permissions Issues------------------Some Linux distributions forbid direct access to USB devices, and requiremodification of system permissions. The simplest way to do this is to installyour distribution's packaged version of `yubikey-personalization` which takescare of things for you, or alternatively copy the yubico udev rules:``sudo curl -o /etc/udev/rules.d/69-yubikey.rules https://raw.githubusercontent.com/Yubico/yubikey-personalization/master/69-yubikey.rules````sudo curl -o /etc/udev/rules.d/70-yubikey.rules https://raw.githubusercontent.com/Yubico/yubikey-personalization/master/70-yubikey.rules````sudo service udev restart``Windows=======Installation on windows currently has some issues, as python-yubico does notseem to import properly (on my Windows 7 development machine at least).However, as Yubico `already offer a windows tool<https://www.yubico.com/applications/internet-services/gmail/>`_that does essentially the same thing as this project, that software can be usedas an alternative.Other OSs=========I haven't had the opportunity to try this, but if your system has a libusb backendand is somewhat unixy, it is likely to work just fine.
Package: yubistack
YubiStack provides a python re-implementation of:yubiauth: Authentication client with a simple user management systemyubikey-val: YubiKey validation serveryubikey-ksm: YubiKey key storage moduleNOTE: Only the authentication part is implemented from yubiauth, the user management system is NOT.InstallationTo install yubistak, simply:$sudopipinstallyubistackConfigurationThe configuration file path is read from YUBISTACK_SETTINGS environment variable, otherwise defaults
to /etc/yubistack.conf. You can find a sample config in the repo.
Package: yuca
yucaKeep all your info (contact, education, projects, publications, etc) in a single
place and generate Resumes, CVs, and much more in one line.InstallationpipinstallyucaGetting startedYou can enter your data from partially filled data files generated using:yucawarehouseinitmy_wh_nameThat will create yourwarehouse, which is the folder where you are going to
store yourdata,templatesandrecipes.By default, no templates are downloaded with yuca. In order to get your first
template, you can run:yucatemplategethttps://github.com/yuca-devs/forty-seconds-resume.gitThat will add the templateforty-seconds-resumeinto thetemplatesfolder
of your warehouse. Moreover, it will create aforty-seconds-resume-base-recipethat helps yuca while cooking that template. You can find the base recipe in therecipesfolder of your warehouse.Now, you can produce a compiled version of your template by cooking the recipe:yucacookforty-seconds-resume-base-recipeThat will produce a folderforty-seconds-resume-base-recipe-cookedwith the
result of the compilation.Finally, you can edit the fileen.ymlinside thedatafolder of your
warehouse, insterting your own personal information. Then cook the recipe again
to see the template filled up with your data.
Package: yuccnlptools
yuccnlptools常用的nlp工具积累。基于pytorch & transformers，用于文本分类、生成等任务的训练和线上部署。安装方法一：直接使用pip安装pipinstallyuccnlptools方法二：国内pip有时较慢，可以指定使用清华源安装pipinstallyuccnlptools-ihttps://pypi.tuna.tsinghua.edu.cn/simple使用示例待添加附录github网页：https://github.com/yucc2018/yuccnlptoolspypi网页：https://pypi.org/project/yuccnlptools/
Package: yucctools
yucctools常用的工具分享。可以方便的调用本工具去记录日志等。安装方法一：直接使用pip安装pipinstallyucctools方法二：国内pip有时较慢，可以指定使用清华源安装pipinstallyucctools-ihttps://pypi.tuna.tsinghua.edu.cn/simple使用示例日志工具可以方便的去初始化记录日志，并记录日志，样例：# 导入包importyucctoolsasyt# 初始化logger实例logger=yt.logger(filepath='test.log')# 记录信息，只要这么调用就可以使用了# 记录一条debug级别的日志logger.info('this is a debug levle log.')# 记录一条info级别的日志logger.info('this is a info level log.')# 记录一条warning级别的日志记录logger.warning('this is a warning level log.')# 记录一条error级别的日志记录logger.error('this is a error level log.')# 记录一条critical级别的日志记录logger.critical('this is a critical level log.')附录github网页：https://github.com/yucc2018/yucctoolspypi网页：https://pypi.org/project/yucctools/
Package: yucebio-yc2-adaptor
Yucebio Wdl适配器根据不同云平台的Cromwell基础设施将通用的workflow内容转换适合对应平台的版本已经支持的云Yucebio 本地SGE集群阿里云批量计算平台亚马逊云Batch平台适配器安装成功后会在本地python环境中添加yc2_wdl的命令行工具.使用人员可以通过输入该命令检查是否安装成功.适配器目前提供了6个子命令yc2_wdl version: 查看版本信息. 目前应当是 1.0.0yc2_wdl login: 用于登录, 使用适配器必须先登录yc2_wdl config: 用于配置Cromwell 和 APIyc2_wdl adaptor: 用于投递作业yc2_wdl adaptor submit生产人员投递通用流程yc2_wdl adaptor restart生产人员重投作业, 重投之前,需要先中止运行中的作业yc2_wdl adaptor abort中止作业yc2_wdl adaptor convert生信研发人员投递(或重新投递)开发中的流程作业yc2_wdl adaptor update-bcs-instance生信研发人员更新本地阿里云实例配置信息.避免因阿里云平台实例类型错误导致分析失败yc2_wdl api: 提供API相关的辅助命令yc2_wdl api sync-backends将本地Cromwell配置上传到服务器或从服务器下载Cromwell配置到本地yc2_wdl api list-backends列出服务器上保存的Cromwell配置yc2_wdl api link-job该命令用于管理历史作业, 手动将历史作业信息上传到服务器.yc2_wdl api export-workflow导出作业适配后的JSON或WDL内容yc2_wdl monitor: 提供查询作业信息相关的辅助命令yc2_wdl monitor query: 基于Cromwell原生接口查询指定Cromwell服务器上的所有作业信息yc2_wdl monitor ls: 查询个人(JSON中的owner)投递的作业.所有子命令（和二级子命令）支持最小前缀匹配的简写模式，即根据子命令前缀自动识别要执行的命令安装# 初始化环境，如通过conda初始化python>=3.9的环境$condacreate-npython3.9python=3.9# 安装$pipinstallYucebio-Wdladaptor# 使用$yc2_wdl--help详细使用说明更新日志附录各个平台可用自定义RUNTIME属性通用属性cpumemory阿里云rescource_type 控制生成竞价型或按需型实例systemDiskclustermounts, vpccontinueOnReturnCode, failOnStderrSGEowner： 指定sge任务属主'cpu', 'memory', "sge_queue", "sge_project", "mount", 'continueOnReturnCode'simg亚马逊cpumemorydockerdisk
Package: yucheng-ner
NestedNERPrerequisitesThe main requirements are:tqdmflairword2vecglove-python-binary==0.2.0transformers==2.10.0wandb # for logging the resultsyamlIn the root directory, runpipinstall-e.Data Format{
  "id": "train_2975", 
  "text": "ll Services Plan Documents Only ( Section 125 ) Premium Offset Plan ( POP ) Wellness Plans MBTA Corporate Transit Pass Program WMATA Smar Trip Transit / Parking Program Contact Us HRC Total Solutions 111 Charles Street Manchester , New hampshire 03101 customerservice @ hrcts . com Phone : ( 603 ) 647 - 1147 Fax : ( 866 ) 978 - 7868 Follow Us Linked In You Tube Twitter Resources IIAS Participating Pharmacies IIAS 90 % Merchant List FSA Store HSA St", 
  "entity_list": [
      {"text": "111 Charles Street", "type": "detail", "char_span": [200, 218]}, 
      {"text": "Manchester", "type": "city", "char_span": [219, 229]}, 
      {"text": "New hampshire", "type": "state", "char_span": [232, 245]}, 
      {"text": "03101", "type": "zipcode", "char_span": [246, 251]},
  ]
}Pretrained Model and Word EmbeddingsDownloadBERT-BASE-CASEDand put it under../pretrained_models. Downloadword embeddings(code: 8044) and put them under../pretrained_emb.TrainSet configuration intplinker_ner/train_config.yaml. Start training:cd tplinker_ner
python train.pyEvaluationSet configuration intplinker_ner/eval_config.yaml. Start evaluation by runningtplinker_ner/Evaluation.ipynb
Package: yuDebug
DescriptionTo help students to upload their codes along with errors, this module comes up. Based on the work of cgitb, it provides more functionalities to simply gather the code and the errors for teachers to have a clean view on where the bug might be.UsageSimplyimport yuDebug. When an error pops up, there will be guide in the console.介绍为帮助学生更好地向老师提供自己的代码特写此模块。在教学过程中，经常有学生书写的代码出现了bug，但是绝大多数情况下，学生无法完整截取代码图片，这导致了老师在解答问题时无法更好地解答，经常需要反复要求学生截全，大大降低了答疑的效率。使用只需要：import yuDebug模块会接管报错流，并当出现错误时，自动将源代码和报错信息整合到一个文件中，再提示学生复制该文件内容。示例当出现错误时，模块会在console里输出发生异常，代码及报错已保存到./yuLog.txt
请双击打开文件，并复制全部内容，粘贴到qq群内寻求帮助
yuLog.txt的内容如下[Author: PuluterYu]

[=====Raw Code Part=====]
    1 #coding:utf-8
    2 import yud
    3 
    4 a = 1/0
    5 b = 1/3
    6 c = 1/4
    7 b = 1/3
    8 c = 1/4
    9 d = 1/0
[=======================]


[=====Basic Part=====]
ZeroDivisionError
Python 3.7.0: C:\Users\HASEE\AppData\Local\Programs\Python\Python37\python.exe
Sun Feb 16 13:37:24 2020
[====================]


[=====Data Part=====]
a undefined
[===================]


[=====Raw Error=====]
ZeroDivisionError: division by zero

    The above is a description of an error in a Python program.  Here is
    the original traceback:

    Traceback (most recent call last):
  File ".\er.py", line 4, in <module>
    a = 1/0
ZeroDivisionError: division by zero
[===================]主要包括了：全部源代码运行环境局部变量值原生报错信息