Comments (1)
You are right. Using the command line references are mandatory. Yet COMET-QE does not use them.. you can pass whatever you want.
Using python you dont even need the references:
from comet.models import download_model
model = download_model("wmt-large-qe-estimator-1719")
data = [{
"src": "Dem Feuer konnte Einhalt geboten werden",
"mt": "The fire could be stopped",
}, {
"src": "Schulen und Kindergärten wurden eröffnet.",
"mt": "Schools and kindergartens were open"
}]
model.predict(data, cuda=True, show_progress=True)
([{'src': 'Dem Feuer konnte Einhalt geboten werden', 'mt': 'The fire could be stopped', 'predicted_score': 0.008310817182064056}, {'src': 'Schulen und Kindergärten wurden eröffnet.', 'mt': 'Schools and kindergartens were open', 'predicted_score': 0.7012745141983032}], [0.008310817182064056, 0.7012745141983032])
from comet.
Related Issues (20)
- tensor_lru_cache is limited to tensors with at least 2-Dimensions HOT 5
- `Unbabel/wmt22-comet-da` model not working as part of Huggingface evaluate HOT 2
- Can't reproduce Cometinho model scores HOT 3
- Do system scores above 100 really "differ"? HOT 4
- wmt20-comet-qe-da do not work under huggingface guides (possible version conflicts) HOT 3
- Support pandas 2
- [QUESTION] How to finetune `wmt22-comet-da` and have results scaled to 0-1 range HOT 1
- UnifiedMetric test failing: test_multitask_with_references HOT 1
- Segmentation error when tring to reproduce wmt22 results HOT 1
- How to reproduce Unbabel/wmt22-comet-da model HOT 2
- Evaluate lines with newline characters
- [QUESTION] Does COMET support Scoring multiple refs like scarebleu? HOT 2
- [QUESTION] How are the older models supposed to be used?
- v1.x and v2.x have different scores for wmt20-comet-qe-da model HOT 2
- [QUESTION]When I train my COMET model, I have the following problem when I am almost successful, it seems to be stuck HOT 2
- Unbabel/wmt22-cometkiwi-da doesn't work from Huggingface HOT 1
- pretrained_model setting in hparams.yaml has no effect HOT 1
- [QUESTION] Why does training speed go down? HOT 5
- Multi-GPU training HOT 10
- Using comet-mbr for Multi-Model Translation Ranking: Questions About Input Format and GPU Disabling HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from comet.