Skip to main content

AdaSeq: An All-in-One Library for Developing State-of-the-Art Sequence Understanding Models

license modelscope version issues stars downloads contribution

English | 简体中文

Introduction

AdaSeq (Alibaba Damo Academy Sequence Understanding Toolkit) is an easy-to-use all-in-one library, built on ModelScope, that allows researchers and developers to train custom models for sequence understanding tasks, including part-of-speech tagging (POS Tagging), chunking, named entity recognition (NER), entity typing, relation extraction (RE), etc.

🌟 Features:
  • Plentiful Models:

    AdaSeq provide plenty of cutting-edge models, training methods and useful toolkits for sequence understanding tasks.

  • State-of-the-Art:

    Our aim to develop the best implementation, which can beat many off-the-shelf frameworks on performance.

  • Easy-to-Use:

    One line of command is all you need to obtain the best model.

  • Extensible:

    It's easy to register a module, or build a customized sequence understanding model by assembling the predefined modules.

⚠️Notice: This project is under quick development. This means some interfaces could be changed in the future.

📢 What's New

⚡ Quick Experience

You can try out our models via online demos built on ModelScope: [English NER] [Chinese NER] [CWS]

More tasks, more languages, more domains: All modelcards we released can be found in this page Modelcards.

🛠️ Model Zoo

Supported models:

💾 Dataset Zoo

We collected many datasets for sequence understanding tasks. All can be found in this page Datasets.

📦 Installation

AdaSeq project is based on Python >= 3.7, PyTorch >= 1.8 and ModelScope >= 1.4. We assure that AdaSeq can run smoothly when ModelScope == 1.9.5.

  • installation via pip:
pip install adaseq
  • installation from source:
git clone https://github.com/modelscope/adaseq.git
cd adaseq
pip install -r requirements.txt -f https://modelscope.oss-cn-beijing.aliyuncs.com/releases/repo.html

Verify the Installation

To verify whether AdaSeq is installed properly, we provide a demo config for training a model (the demo config will be automatically downloaded).

adaseq train -c demo.yaml

You will see the training logs on your terminal. Once the training is done, the results on test set will be printed: test: {"precision": xxx, "recall": xxx, "f1": xxx}. A folder experiments/toy_msra/ will be generated to save all experimental results and model checkpoints.

📖 Tutorials

📝 Contributing

All contributions are welcome to improve AdaSeq. Please refer to CONTRIBUTING.md for the contributing guideline.

📄 License

This project is licensed under the Apache License (Version 2.0).

Metadata

Release files for adaseq 0.6.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for adaseq 0.6.6
File Size Uploaded
adaseq-0.6.6.tar.gz 97.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for adaseq 0.6.6
File Interpreter ABI Platform
adaseq-0.6.6-py3-none-any.whl Python 3 none any Details

Total release size: 247.1 kB

Release files / adaseq-0.6.6.tar.gz

Download URL adaseq-0.6.6.tar.gz
Size 97.6 kB
Tags Source
SHA-256 checksum
How to use checksums
395c66a77e3e2128b79811f9845416f64f619649601c5a1f94e37e6ca590212d
BLAKE2b-256 checksum
How to use checksums
200400c44c007d14027a586954e016dc340b3315b726cf14906c494a1a94cb97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.15

Release files / adaseq-0.6.6-py3-none-any.whl

Download URL adaseq-0.6.6-py3-none-any.whl
Size 149.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
22b692b89bcee6e7ec77e6fe36501732036fe4cc0db256a6cb94648c0b3251b3
BLAKE2b-256 checksum
How to use checksums
4947ddf684253dbb4c3e0716fcda67094aa3c407237d5eb8930ede0a91b9feb8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.15

Release history Release notifications | RSS feed

This release

0.6.6 This release

2 release files

0.6.5

2 release files

0.6.4

2 release files

0.6.3

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page