We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8aac698 commit cf19819Copy full SHA for cf19819
pythainlp/wangchanberta/core.py
@@ -1,6 +1,7 @@
1
# -*- coding: utf-8 -*-
2
from typing import List, Tuple, Union
3
import re
4
+import warnings
5
from transformers import (
6
CamembertTokenizer,
7
pipeline,
@@ -35,6 +36,7 @@ def __init__(
35
36
dep_msg = deprecation_message(
37
[("dataset_name", "lst20")], "class `ThaiNameTagger`", "4.0.0"
38
)
39
+ warnings.warn(dep_msg, DeprecationWarning, stacklevel=2)
40
self.dataset_name = dataset_name
41
self.grouped_entities = grouped_entities
42
self.classify_tokens = pipeline(
0 commit comments