[pipeline] Alias NerPipeline as TokenClassificationPipeline

This commit is contained in:
Julien Chaumond 2020-02-13 20:14:43 -05:00
parent 61a2b7dc9d
commit 7d22fefd37
2 changed files with 4 additions and 0 deletions

View File

@ -101,6 +101,7 @@ from .pipelines import (
PipelineDataFormat,
QuestionAnsweringPipeline,
TextClassificationPipeline,
TokenClassificationPipeline,
pipeline,
)
from .tokenization_albert import AlbertTokenizer

View File

@ -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