This is a package for the POSSCORE metric.
Project description
POSSCORE
Overview
POSSCORE is an automatic evaluation metric, which is described in the paper POSSCORE: A Simple Yet Effective Evaluation of Conversational Search with Part of Speech Labelling (CIKM 2021).
If you find this repo useful, please cite:
@article{liu2021posscore,
title={POSSCORE: A Simple Yet Effective Evaluation of Conversational Search with Part of Speech Labelling},
author={Liu, Zeyang and Zhou, Ke and Mao, Jiaxin and Wilson, Max L},
journal={arXiv preprint arXiv:2109.03039},
year={2021}
}
Installation
- Python version >= 3.6
- spaCy version >= 2.3
- Install spaCy with pip by:
pip install -U pip setuptools wheel
pip install -U spacy
python -m spacy download en_core_web_sm
The more details about the installation of spaCy is shown in spaCy.
Note: different versions of spaCy may influence the final posscore since the spaCy models may change in different versions. In the original paper, the version of spaCy we used is 2.3.
- Install from pypi with pip by
pip install posscore
Usage
Python Function
from posscore import scorer
s = scorer.POSSCORE() # init POSSCORE
s.get_posscore(str_reference, str_candidate)
Example:
from posscore import scorer
s = scorer.POSSCORE() # init POSSCORE
reference = 'i like sports , football , hockey , soccer i also find swimming interesting as well .'
candidate = 'i like hockey and soccer . what teams do you support ?'
print(s.get_posscore(reference, candidate))
#output:0.528
You can also customize the selected tag list:
from posscore import scorer
s = scorer.POSSCORE() # init POSSCORE
pos_tag_set = ['ADJ', 'ADV', 'VERB', 'PROPN', 'NOUN']
s.get_posscore(str_reference, str_candidate, pos_tag_set)
All the available POS tags in POSSCORE are introduced in Universal POS tags.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file posscore-0.0.1.tar.gz.
File metadata
- Download URL: posscore-0.0.1.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f21a01f7be06c8f9609b480921bb7ab435514ff90f19755fba3181995f58b73d
|
|
| MD5 |
309f1faf24dce21a638e9545b14e1be3
|
|
| BLAKE2b-256 |
432e7fbc20871f8e9cb58110a3c5869197b2a458304c028fda3089f0773758b4
|
File details
Details for the file posscore-0.0.1-py3-none-any.whl.
File metadata
- Download URL: posscore-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01be1e83e9202ad2f6c9835ba66f52077ac172dc0d36efbb9304aa82f4a11f16
|
|
| MD5 |
ec68f0c26465596975b591c4e70f6ae5
|
|
| BLAKE2b-256 |
2019619f4975d51d2c015715b1af358ab2def5be63c49160879b88b83d7a2e74
|