osanseviero
commited on
Commit
·
1001daa
1
Parent(s):
5e0d62e
Update pipeline.py
Browse files- pipeline.py +0 -4
pipeline.py
CHANGED
@@ -6,10 +6,6 @@ class PreTrainedPipeline():
|
|
6 |
# Preload all the elements you are going to need at inference.
|
7 |
# For instance your model, processors, tokenizer that might be needed.
|
8 |
# This function is only called once, so do all the heavy processing I/O here"""
|
9 |
-
package = os.path.join(path,"en_core_web_sm-any-py3-none-any.whl")
|
10 |
-
subprocess.check_call(
|
11 |
-
[sys.executable, "-m", "pip", "install", package]
|
12 |
-
)
|
13 |
raise NotImplementedError(
|
14 |
"Please implement TokenClassificationPipeline __init__ function"
|
15 |
)
|
|
|
6 |
# Preload all the elements you are going to need at inference.
|
7 |
# For instance your model, processors, tokenizer that might be needed.
|
8 |
# This function is only called once, so do all the heavy processing I/O here"""
|
|
|
|
|
|
|
|
|
9 |
raise NotImplementedError(
|
10 |
"Please implement TokenClassificationPipeline __init__ function"
|
11 |
)
|