JaSPICE - Japanese SPICE
Evaluation code for machine-generated image captions in Japanese.
This code also implemented a scene-graph parser for Japanese.
Instructions (using Docker)
Clone & Install
git clone git@github.com:keio-smilab23/JaSPICE.git
cd JaSPICE
pip install -e .
Build
docker build -t jaspice .
Run the docker container.
docker run -d -p 2115:2115 jaspice
Usage
from jaspice.api import JaSPICE
batch_size = 16
jaspice = JaSPICE(batch_size,server_mode=True)
_, score = jaspice.compute_score(references, candidates)
Instructions (without Docker)
Clone & Install
git clone git@github.com:keio-smilab23/JaSPICE.git
cd JaSPICE
pip install -e .
Install JUMAN, JUMAN++, KNP
- juman : v7.01
- juman++ : v1.02
- knp : v4.20
# JUMAN++
wget 'http://nlp.ist.i.kyoto-u.ac.jp/DLcounter/lime.cgi?down=http://lotus.kuee.kyoto-u.ac.jp/nl-resource/jumanpp/jumanpp-1.02.tar.xz&name=jumanpp-1.02.tar.xz'
# JUMAN
wget 'http://nlp.ist.i.kyoto-u.ac.jp/nl-resource/juman/juman-7.01.tar.bz2' -O /tmp/juman.tar.bz2
# KNP
wget 'https://nlp.ist.i.kyoto-u.ac.jp/DLcounter/lime.cgi?down=https://nlp.ist.i.kyoto-u.ac.jp/nl-resource/knp/knp-4.20.tar.bz2&name=knp-4.20.tar.bz2'
Usage
from jaspice.api import JaSPICE
batch_size = 16
jaspice = JaSPICE(batch_size,server_mode=False)
_, score = jaspice.compute_score(references, candidates)
Scene Graph Example
- 「人通りの少なくなった道路で青いズボンを着た男の子がオレンジ色のヘルメットを被りスケートボードに乗っている.」
BibTex
@InProceedings{jaspice,
title = {JaSPICE: 日本語における述語項構造に基づく画像キャプション生成モデルの自動評価尺度},
author = {和田唯我 and 兼田寛大 and 杉浦孔明},
year = {2023},
booktitle = {言語処理学会第29回年次大会}
}
Metadata
Release files for jaspice 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| jaspice-0.0.1.tar.gz | 16.9 kB | Details |
Release files / jaspice-0.0.1.tar.gz
| Download URL | jaspice-0.0.1.tar.gz |
|---|---|
| Size | 16.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5b39fdf864fcac66d1c8aa69e906de4a8ccd429fb353d797074b13e149207ec9
|
|
BLAKE2b-256 checksum How to use checksums |
71ecb6fad376ada784849ad05286a668f8627d220c455d875a8bf337f5443675
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.10
|