Git Product home page Git Product logo

Comments (6)

salaniz avatar salaniz commented on August 24, 2024 2

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.

salaniz avatar salaniz commented on August 24, 2024

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.

ujardonnet avatar ujardonnet commented on August 24, 2024

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.

zhouting1994 avatar zhouting1994 commented on August 24, 2024

The http://nlp.stanford.edu/software/stanford-corenlp-full-2015-12-09.zip is still not available. Is there any other solution?

from pycocoevalcap.

ujardonnet avatar ujardonnet commented on August 24, 2024

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.

salaniz avatar salaniz commented on August 24, 2024

It seems to be working again so I am closing this issue.

from pycocoevalcap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.