Skip to content

Commit

Permalink
shared sent segments, mnli on gpu, moverscore
Browse files Browse the repository at this point in the history
minor: classical metrics, moverscore topk
fix: #6, #7, #11
rm: obsolete achived_experiments
tofix: moverscore truncation & corr, pipeline refactor to automodel
  • Loading branch information
TURX committed Dec 11, 2022
1 parent 3a3b8de commit 4ca7c5f
Show file tree
Hide file tree
Showing 11 changed files with 137 additions and 426 deletions.
24 changes: 18 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,29 @@ Do not reinvent the wheel:

# Approaches

## Approach 0: just replacing human summaries with documents
For metrics, add the following, as well as changes specified in "Usage" part of other approaches, to `env.py` of [EvalBase](https://github.com/SigmaWe/EvalBase)](https://github.com/SigmaWe/EvalBase):

```python
import sys
sys.path.append("/path/to/DocAsRef/")
```

Metrics: ROUGE, BERTScore, BLEURT
## Approach 0: just replacing human summaries with documents

Integrated into [EvalBase](https://github.com/SigmaWe/EvalBase)](https://github.com/SigmaWe/EvalBase)
Metrics: BERTScore, ROUGE, BLEURT, MoverScore

For non-integrated metrics, add the following, as well as changes specified in "Usage" part of other approaches, to `env.py` of EvalBase:
Implemented in `/classic`

Usage:
```python
import sys
sys.path.append("/path/to/DocAsRef/")
import classic.eval as classic
metrics = {
"bertscore": classic.bertscore_compute,
"rouge": classic.rouge_compute,
"bleurt": classic.bleurt_compute,
"moverscore-1gram": functools.partial(classic.moverscore_compute, n_gram=1),
"moverscore-2gram": functools.partial(classic.moverscore_compute, n_gram=2),
}
```

## Approach 1: sentence-level, better similarity metrics, and better weighting methods
Expand Down
5 changes: 0 additions & 5 deletions archived_experiments/README.md

This file was deleted.

144 changes: 0 additions & 144 deletions archived_experiments/bao_tac2010.py

This file was deleted.

204 changes: 0 additions & 204 deletions archived_experiments/eval.py

This file was deleted.

Loading

0 comments on commit 4ca7c5f

Please sign in to comment.