Comments (6)
Here is a temporary solution that downloads the required files from the Maven resources.
Just execute the following code in an environment where you installed pycocoevalcap
.
import os
from urllib.request import urlretrieve
from pycocoevalcap.spice.get_stanford_models import SPICELIB, JAR, SPICEDIR, print_progress
os.makedirs(os.path.join(SPICEDIR, SPICELIB), exist_ok=True)
base_url = f'https://repo1.maven.org/maven2/edu/stanford/nlp/stanford-corenlp/3.6.0/{JAR}'
target_name = os.path.join(SPICEDIR, SPICELIB, JAR)
for filef in ['{}.jar', '{}-models.jar']:
url = filef.format(base_url)
target_file = filef.format(target_name)
urlretrieve(url, filename=target_file, reporthook=print_progress)
from pycocoevalcap.
Thank you for pointing this out.
At the moment, I cannot access any version (even the newest one) on the official website: https://stanfordnlp.github.io/CoreNLP/history.html
I suspect this might be a temporary issue, or, if they do restructure the links, I can update the code once a new download link becomes available.
For now, I would wait a bit to see if the website gets fixed/updated. If it stays unavailable, one option might be to use alternative sources such as: https://central.sonatype.com/artifact/edu.stanford.nlp/stanford-corenlp/
For reference, the code currently uses version 3.6.0.
from pycocoevalcap.
Stanford website says
The resource you are trying to reach is not available due to SRCF datacenter shutdown and the corresponding servers being hosted there. The outage is expected to be between Jun 24th to July 3rd.
https://cs.stanford.edu/srcf_404
from pycocoevalcap.
The http://nlp.stanford.edu/software/stanford-corenlp-full-2015-12-09.zip is still not available. Is there any other solution?
from pycocoevalcap.
Seems that the package is mirrored on maven https://repo1.maven.org/maven2/edu/stanford/nlp/stanford-corenlp/3.6.0/ (need to check if that can be used directly).
Another option would be to migrate Spice to the latest version (hosted on huggingface) https://huggingface.co/stanfordnlp/CoreNLP/tree/main
from pycocoevalcap.
It seems to be working again so I am closing this issue.
from pycocoevalcap.
Related Issues (20)
- why it is so slow to compute the meteor score? HOT 3
- the ratio of BLEU
- OSError: [Errno 22] Invalid argument HOT 1
- computing METEOR fails HOT 7
- Problem in tokenizer HOT 2
- CIDEr score is 0 while all other metrics are normal HOT 6
- BrokenPipeError: [Errno 32] Broken pipe HOT 1
- OSError: [Errno 22] Invalid argument HOT 4
- Could not cache item for SPICE HOT 1
- Example of using pycocoevalcap WITHOUT coco data HOT 3
- mean maybe variance?
- Logical error in CIDEr ?
- What are the default values of parameters for meteor?
- Error in calculating SPICE score HOT 1
- meteor.py HOT 4
- is your code guaranteed? HOT 1
- [Errno 22] Invalid argument for self.meteor_p.stdin.flush() HOT 1
- Any plans for adding SPICE metric? HOT 3
- [Errno 22] Invalid argument HOT 9
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 pycocoevalcap.