|
Algorithm 1: Data Generation Algorithm. |
Require: use cases U, schemas S, questions Q, labels L
Set the number of data points to be generated, n
Initialize a counter
while
do
Randomly select a use case
Select a schema for use case u
for to the number of questions, q do
Randomly select an answer a for question based on the schema s for use case u
end for
Add the labels for use case u
Increment the counter:
end while
return Generated data
|