allennlp.pretrained

Pretrained models available in AllenNLP.

class allennlp.pretrained.PretrainedModel(archive_file: str, predictor_name: str) → None[source]

Bases: object

A pretrained model is determined by both an archive file (representing the trained model) and a choice of predictor.

predictor() → allennlp.predictors.predictor.Predictor[source]
allennlp.pretrained.biaffine_parser_stanford_dependencies_todzat_2017() → allennlp.predictors.biaffine_dependency_parser.BiaffineDependencyParserPredictor[source]
allennlp.pretrained.biaffine_parser_universal_dependencies_todzat_2017() → allennlp.predictors.biaffine_dependency_parser.BiaffineDependencyParserPredictor[source]
allennlp.pretrained.bidirectional_attention_flow_seo_2017() → allennlp.predictors.bidaf.BidafPredictor[source]
allennlp.pretrained.decomposable_attention_with_elmo_parikh_2017() → allennlp.predictors.decomposable_attention.DecomposableAttentionPredictor[source]
allennlp.pretrained.esim_nli_with_elmo_chen_2017() → allennlp.predictors.decomposable_attention.DecomposableAttentionPredictor[source]
allennlp.pretrained.fine_grained_named_entity_recognition_with_elmo_peters_2018() → allennlp.predictors.sentence_tagger.SentenceTaggerPredictor[source]
allennlp.pretrained.named_entity_recognition_with_elmo_peters_2018() → allennlp.predictors.sentence_tagger.SentenceTaggerPredictor[source]
allennlp.pretrained.neural_coreference_resolution_lee_2017() → allennlp.predictors.coref.CorefPredictor[source]
allennlp.pretrained.open_information_extraction_stanovsky_2018() → allennlp.predictors.open_information_extraction.OpenIePredictor[source]
allennlp.pretrained.span_based_constituency_parsing_with_elmo_joshi_2018() → allennlp.predictors.constituency_parser.ConstituencyParserPredictor[source]
allennlp.pretrained.srl_with_elmo_luheng_2018() → allennlp.predictors.semantic_role_labeler.SemanticRoleLabelerPredictor[source]