Skip to content

This repository contains the source code and datasets for our FGCS paper: Multi-Information Fusion Based Few-shot Web Service Classification

Notifications You must be signed in to change notification settings

ssea-lab/FSC4WebService

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Few-shot Classification for Web Service

This repository contains the source code and datasets for our FGCS paper: Multi-Information Fusion Based Few-shot Web Service Classification

The code is partially referred to https://github.com/YujiaBao/Distributional-Signatures

A few-shot Web service classification method called MIF-FWSC (multi-information fusion based few-shot Web service classification) based on meta-learning framework is proposed to classify the categories with only a few Web services. MIF-FWSC can find key words in the service description and exploit the knowledge in head categories to make the model more robust across different categories. It also incorporates the information contained in the category names to enhance the classification ability.

A series of experiments are conducted on two real-world datasets to demonstrate the effectiveness of our proposed model. The results show that MIF-FWSC achieves state-of-the-art performance for few-shot Web service classification.

Data

ProgrammableWeb (https://www.programmableweb.com) and Amazon Web service marketplace (https://aws.amazon.com/marketplace) are by far the two largest online Web service registries. New Web services and new service categories are continuously registered in them. We collected a dataset from ProgrammableWeb on Jan 10, 2020 and a dataset from Amazon Web service marketplace on Aug 7, 2021. All datasets are in the directory data.

Environment

  • NVIDIA 2080
  • CUDA 11.1

Dependencies

You can use the python package manager of your choice (pip/conda) to install the dependencies. The code is tested on the Linux operating system.

Usage

  1. Download FASTTEXT pre-trained word embeddings from here. Then put it into the directory cache.
  2. Train word2vec embeddings on the Web service dataset based on the pre-trained FastText word embeddings
python w2v.py --dataset=[pw/aws]
  1. Modify run.sh and run it.
bash run.sh

About

This repository contains the source code and datasets for our FGCS paper: Multi-Information Fusion Based Few-shot Web Service Classification

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published