Skip to content
This repository has been archived by the owner on Jan 20, 2023. It is now read-only.

Commit

Permalink
Removes semantic parsing stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkgr committed Mar 10, 2021
1 parent 3b864fe commit 5a32efa
Show file tree
Hide file tree
Showing 37 changed files with 2 additions and 792 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/api_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ jobs:
# This should be all of the directory names in api/allennlp_demo that correspond
# to demo model endpoints.
model: [
"atis_parser",
"bidaf",
"bidaf_elmo",
"constituency_parser",
Expand All @@ -85,16 +84,13 @@ jobs:
"named_entity_recognition",
"naqanet",
"next_token_lm",
"nlvr_parser",
"nmn_drop",
"open_information_extraction",
"roberta_mnli",
"roberta_sentiment_analysis",
"roberta_snli",
"semantic_role_labeling",
"transformer_qa",
"vilbert_vqa",
"wikitables_parser",
"tasks",
"model_cards"
]
Expand Down
3 changes: 0 additions & 3 deletions api/.allennlp_plugins

This file was deleted.

1 change: 0 additions & 1 deletion api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ RUN pip install -r requirements.txt

RUN spacy download en_core_web_sm

COPY .allennlp_plugins .allennlp_plugins
COPY allennlp_demo/__init__.py allennlp_demo/__init__.py
COPY allennlp_demo/common allennlp_demo/common

Expand Down
17 changes: 0 additions & 17 deletions api/allennlp_demo/atis_parser/.skiff/webapp.jsonnet

This file was deleted.

Empty file.
14 changes: 0 additions & 14 deletions api/allennlp_demo/atis_parser/api.py

This file was deleted.

5 changes: 0 additions & 5 deletions api/allennlp_demo/atis_parser/model.json

This file was deleted.

7 changes: 0 additions & 7 deletions api/allennlp_demo/atis_parser/test_api.py

This file was deleted.

17 changes: 0 additions & 17 deletions api/allennlp_demo/nlvr_parser/.skiff/webapp.jsonnet

This file was deleted.

Empty file.
14 changes: 0 additions & 14 deletions api/allennlp_demo/nlvr_parser/api.py

This file was deleted.

5 changes: 0 additions & 5 deletions api/allennlp_demo/nlvr_parser/model.json

This file was deleted.

26 changes: 0 additions & 26 deletions api/allennlp_demo/nlvr_parser/test_api.py

This file was deleted.

18 changes: 0 additions & 18 deletions api/allennlp_demo/nmn_drop/.skiff/webapp.jsonnet

This file was deleted.

36 changes: 0 additions & 36 deletions api/allennlp_demo/nmn_drop/Dockerfile

This file was deleted.

30 changes: 0 additions & 30 deletions api/allennlp_demo/nmn_drop/README.md

This file was deleted.

Empty file.
17 changes: 0 additions & 17 deletions api/allennlp_demo/nmn_drop/api.py

This file was deleted.

14 changes: 0 additions & 14 deletions api/allennlp_demo/nmn_drop/model.json

This file was deleted.

7 changes: 0 additions & 7 deletions api/allennlp_demo/nmn_drop/requirements.txt

This file was deleted.

14 changes: 0 additions & 14 deletions api/allennlp_demo/nmn_drop/test_api.py

This file was deleted.

17 changes: 0 additions & 17 deletions api/allennlp_demo/wikitables_parser/.skiff/webapp.jsonnet

This file was deleted.

Empty file.
14 changes: 0 additions & 14 deletions api/allennlp_demo/wikitables_parser/api.py

This file was deleted.

5 changes: 0 additions & 5 deletions api/allennlp_demo/wikitables_parser/model.json

This file was deleted.

29 changes: 0 additions & 29 deletions api/allennlp_demo/wikitables_parser/test_api.py

This file was deleted.

3 changes: 0 additions & 3 deletions ui/public/sitemap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ https://demo.allennlp.org/dependency-parsing
https://demo.allennlp.org/constituency-parsing
https://demo.allennlp.org/semantic-role-labeling
https://demo.allennlp.org/coreference-resolution
https://demo.allennlp.org/wikitables-parser
https://demo.allennlp.org/nlvr-parser
https://demo.allennlp.org/atis-parser
https://demo.allennlp.org/textual-entailment
https://demo.allennlp.org/next-token-lm
https://demo.allennlp.org/masked-lm
Expand Down
8 changes: 0 additions & 8 deletions ui/src/demos/reading-comprehension/Predictions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,11 @@ import {
isBiDAFPrediction,
isNAQANetPrediction,
isTransformerQAPrediction,
isNMNPrediction,
isNAQANetPredictionSpan,
isNAQANetPredictionCount,
isNAQANetPredictionArithmetic,
getBasicAnswer,
} from './types';
import { NMNOutput } from './nmn';

interface Props {
input: Input;
Expand Down Expand Up @@ -67,12 +65,6 @@ const OutputByModel = ({
}
return <NaqanetPrediction input={input} output={output} model={model} />;
}
case ModelId.NMN: {
if (!isNMNPrediction(output)) {
throw new UnexpectedOutputError(model.id);
}
return <NMNOutput {...output} />;
}
}
// If we dont have any output throw.
throw new UnexpectedModelError(model.id);
Expand Down
Loading

0 comments on commit 5a32efa

Please sign in to comment.