Update pipeline.py
Browse files- pipeline.py +1 -0
pipeline.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
|
2 |
from typing import Dict, List, Any
|
3 |
import itertools
|
|
|
4 |
|
5 |
class PreTrainedPipeline():
|
6 |
def __init__(self, path=""):
|
|
|
1 |
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
|
2 |
from typing import Dict, List, Any
|
3 |
import itertools
|
4 |
+
from nltk import sent_tokenize
|
5 |
|
6 |
class PreTrainedPipeline():
|
7 |
def __init__(self, path=""):
|