You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
479 B
18 lines
479 B
from allennlp.common import JsonDict
|
|
from allennlp.data import Instance
|
|
from allennlp.predictors import Predictor
|
|
from overrides import overrides
|
|
|
|
|
|
@Predictor.register('citation_intent_predictor')
|
|
class IntentClassificationPredictor(Predictor):
|
|
""""Predictor for Citation Intent Classifier"""
|
|
|
|
@overrides
|
|
def _json_to_instance(self, json_dict: JsonDict) -> Instance:
|
|
pass
|
|
|
|
@overrides
|
|
def predict_json(self, inputs: JsonDict) -> JsonDict:
|
|
pass
|