From 54b2194751bff077575482343eaab0be4ac34f9f Mon Sep 17 00:00:00 2001 From: himkt Date: Sat, 13 Jan 2024 17:21:52 +0900 Subject: [PATCH 1/2] deps: relax version constraint for konoha --- flair/tokenization.py | 2 +- requirements-dev.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/flair/tokenization.py b/flair/tokenization.py index af77e5f570..7dcfb6fbaa 100644 --- a/flair/tokenization.py +++ b/flair/tokenization.py @@ -159,7 +159,7 @@ def __init__(self, tokenizer: str, sudachi_mode: str = "A") -> None: ) log.warning('- Install konoha with "pip install konoha[{tokenizer_name}]"') log.warning(' - You can choose tokenizer from ["mecab", "janome", "sudachi"].') - log.warning("Note that we Flair support only konoha<5.0.0,>=4.0.0") + log.warning("Note that we Flair support only konoha<6.0.0") log.warning("-" * 100) sys.exit() diff --git a/requirements-dev.txt b/requirements-dev.txt index 96d82982f4..8ecaf431ed 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,5 +1,5 @@ black[jupyter]>=23.3.0 -konoha>=4.6.5,<5.0.0 +konoha<6.0.0 mypy>=1.2.0 pytest>=7.3.1 pytest-black-ng>=0.4.1 From dd580c534fbb475e8dabbfeae9b2575bc4953dfb Mon Sep 17 00:00:00 2001 From: himkt Date: Sun, 14 Jan 2024 20:02:24 +0900 Subject: [PATCH 2/2] chore: delete note --- flair/tokenization.py | 1 - 1 file changed, 1 deletion(-) diff --git a/flair/tokenization.py b/flair/tokenization.py index 7dcfb6fbaa..185e944d3b 100644 --- a/flair/tokenization.py +++ b/flair/tokenization.py @@ -159,7 +159,6 @@ def __init__(self, tokenizer: str, sudachi_mode: str = "A") -> None: ) log.warning('- Install konoha with "pip install konoha[{tokenizer_name}]"') log.warning(' - You can choose tokenizer from ["mecab", "janome", "sudachi"].') - log.warning("Note that we Flair support only konoha<6.0.0") log.warning("-" * 100) sys.exit()