mirror of
https://github.com/saymrwulf/transformers.git
synced 2026-05-14 20:58:08 +00:00
[pipeline] Alias NerPipeline as TokenClassificationPipeline
This commit is contained in:
parent
61a2b7dc9d
commit
7d22fefd37
2 changed files with 4 additions and 0 deletions
|
|
@ -101,6 +101,7 @@ from .pipelines import (
|
|||
PipelineDataFormat,
|
||||
QuestionAnsweringPipeline,
|
||||
TextClassificationPipeline,
|
||||
TokenClassificationPipeline,
|
||||
pipeline,
|
||||
)
|
||||
from .tokenization_albert import AlbertTokenizer
|
||||
|
|
|
|||
|
|
@ -649,6 +649,9 @@ class NerPipeline(Pipeline):
|
|||
return answers
|
||||
|
||||
|
||||
TokenClassificationPipeline = NerPipeline
|
||||
|
||||
|
||||
class QuestionAnsweringArgumentHandler(ArgumentHandler):
|
||||
"""
|
||||
QuestionAnsweringPipeline requires the user to provide multiple arguments (i.e. question & context) to be mapped
|
||||
|
|
|
|||
Loading…
Reference in a new issue