Instructions to use SebastianKotstein/restberta-qa-parameter-matching with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SebastianKotstein/restberta-qa-parameter-matching with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "question-answering" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("question-answering", model="SebastianKotstein/restberta-qa-parameter-matching")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("SebastianKotstein/restberta-qa-parameter-matching") model = AutoModelForQuestionAnswering.from_pretrained("SebastianKotstein/restberta-qa-parameter-matching", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
8e5200b
1
Parent(s): f092e93
Update README.md
Browse files
README.md
CHANGED
|
@@ -6,8 +6,17 @@ widget:
|
|
| 6 |
example_title: "Weather API"
|
| 7 |
---
|
| 8 |
# RESTBERTa
|
| 9 |
-
RESTBERTa
|
|
|
|
| 10 |
In detail, we use question answering to solve the generic task of identifying a Web API syntax element (answer) in a syntax structure (paragraph) that matches the semantics described in a natural language query (question).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
# RESTBERTa for Semantic Parameter Matching
|
| 13 |
This repository contains the weights for a fined-tuned RESTBERTa model for the task of semantic parameter matching in Web APIs. For this, we formulate question answering as a multiple choice task:
|
|
|
|
| 6 |
example_title: "Weather API"
|
| 7 |
---
|
| 8 |
# RESTBERTa
|
| 9 |
+
RESTBERTa stands for *Representational State Transfer on Bidirectional Encoder Representations from Transformers approach* and should support machines
|
| 10 |
+
in processing structured syntax and unstructured natural language descriptions for semantics in Web API documentation.
|
| 11 |
In detail, we use question answering to solve the generic task of identifying a Web API syntax element (answer) in a syntax structure (paragraph) that matches the semantics described in a natural language query (question).
|
| 12 |
+
The identification and extraction Web API syntax elements from Web API documentation is a common sub task of many Web API integration tasks, like parameter matching and endpoint discovery.
|
| 13 |
+
Thus, RESTBERTa might be a foundation for several Web API integration tasks.
|
| 14 |
+
Technically, RESTBERTa covers the concepts for fine-tuning a Transformer Encoder model, i.e., a pre-trained BERT model, to question answering with task-specific samples in order to prepare
|
| 15 |
+
a model for a specific Web API integration task.
|
| 16 |
+
|
| 17 |
+
The paper ["Semantic Parameter Matching in Web APIs with Transformer-based Question Answering"](https://ieeexplore.ieee.org/document/10254746) demonstrates the application of RESTBERTa
|
| 18 |
+
on semantic parameter matching:
|
| 19 |
+
|
| 20 |
|
| 21 |
# RESTBERTa for Semantic Parameter Matching
|
| 22 |
This repository contains the weights for a fined-tuned RESTBERTa model for the task of semantic parameter matching in Web APIs. For this, we formulate question answering as a multiple choice task:
|