Template-free Prompt Tuning for Few-shot NER

The source codes for EntLM. Dependencies: Cuda 10.1, python 3.6.5 To install the required packages by following commands: $ pip3 install -r requirements.txt To download the pretrained bert-base-cased model: $ cd pretrained/bert-base-cased/ $ sh download_bert.sh Few-shot Experiment Run the few-shot experiments on CoNLL 5-shot with: By default, this runs 4 rounds of experiments for each of the sampled datasets.You can also run 10/20/50-shot experiments by editing the line FILE_PATH=dataset/conll/5shot/ in scripts/run_conll.sh . Label word selection You can run the label […]

Read more

A project template which uses FastAPI, Alembic and async SQLModel as ORM

This is a project template which uses FastAPI, Alembic and async SQLModel as ORM. It shows a complete async CRUD template using authentication. Set environment variables Create .env file on root folder and copy the content from .env.example and chage it according to your own configuration. Run project using Docker compose $ docker-compose up -d –build Run Alembic migrations $ docker-compose exec fastapi_server alembic revision –autogenerate $ docker-compose exec fastapi_server alembic upgrade head Setup database with initial data This creates […]

Read more

A Project Template With Python

File Structure . ├── LICENSE ├── Makefile # commands ├── README.md ├── requirements.txt # package information ├── setup.cfg # configurations for formatting & linting & unit-test ├── src # source code location └── test └── utest # unit tests location Commands

Read more

Workflow and Template Toolkit for Simulation (WATTS)

WATTS (Workflow and Template Toolkit for Simulation) provides a set of Python classes that can manage simulation workflows for multiple codes where information is exchanged at a coarse level. For each code, input files rely on placeholder values that are filled in based on a set of user-defined parameters. WATTS is being developed with support from Argonne National Laboratory. For any questions, please contact [email protected]. Installation git clone cd watts pip install -U pip pip install . Documentation To build […]

Read more

ADCS cert template modification and ACL enumeration

This tool is designed to aid an operator in modifying ADCS certificate templates so that a created vulnerable state can be leveraged for privilege escalation (and then reset the template to its previous state afterwards). This is specifically designed for a scenario where WriteProperty rights over a template have been compromised, but the operator is unsure which properties the right applies to. In this scenairo, the template’s ACL can be queried and the applicable ACE information can be cross-referenced with […]

Read more

Create CDK projects with projen

I’ll be back! Description This is a CDKv2 project that takes the grind out of setting up new cdk projects/implementations by using automation When deployed this project will create for each ‘template’ a set of resources; a ssm automation document which ‘kicks’ off the process of creating a new ‘instance’ of your template a lambda which acts as ‘glue’ between the ssm automation document and a codebuild project which creates a cdk project based on the parameters you pass into […]

Read more

Template repo to quickly make a tested and documented GitHub action in Python with Poetry

Getting started from the template Rename the src/action_python_poetry package. Globally replace instances of action-python-poetry and action_python_poetry with your project and package name. If your repo is private, set it up on CodeCov and add a codecov token to your repo under the CODECOV_TOKEN secret. Create and test your action. __main__.py in your package will be executed when the action is run. The environment variables your tests use can be set in pyproject.toml and/or managed in test fixtures. Update action.yml, README.md, […]

Read more

Add your own library to your template

これはなに 競技プログラミングなどのライブラリをlineディテクティブを付けて一つのファイルにします。 Usage -add_lib_to_templ |-LICENSE |-README.md |-rend.py |-template.cpp.j2 |-あなたのC++ライブラリ(ディレクトリ) 上のようなディレクトリ構造にします。 $ pip install Jinja2 をした後 $ python rend.py とするとadd_lib_to_templ内にライブラリの中身が入ったcppファイルが出来上がります(デフォルトの名前がtemplate.cppになっています)。 ちなみに、template.cpp.j2の{% for file in files_data %}の前と{% endfor %}の後は編集して大丈夫です。お好みのテンプレートを作ってみてください。 Option -o レンダリングされたC++プログラムを保存するファイルの名前を指定します。デフォルト値はtemplate.cppです。 $ python rend.py -o mytmp.cpp –encode ファイルの読み込み、書き込みを行うときの文字コードを指定します。デフォルト値はutf-8です。 $ python rend.py –encod utf-16 GitHub View Github    

Read more
1 2