Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot download models #20

Open
pbouda opened this issue Apr 17, 2023 · 0 comments
Open

Cannot download models #20

pbouda opened this issue Apr 17, 2023 · 0 comments

Comments

@pbouda
Copy link

pbouda commented Apr 17, 2023

I am trying to run the text command from the README and get a java.net.ConnectException: Operation timed out error:

$ ./saffron.sh ./examples/presidential_speech_dataset/corpus_with_authors.json ./web/data/output_KG ./examples/config.json -k TAXO
###################################################
## Step  1: Loading corpus 1                     ##
###################################################
###################################################
## Step  2: Indexing Corpus                      ##
###################################################
###################################################
## Step  3: Extracting Terms                     ##
###################################################
java.net.ConnectException: Operation timed out
        at java.base/sun.nio.ch.Net.connect0(Native Method)
        at java.base/sun.nio.ch.Net.connect(Net.java:579)
        at java.base/sun.nio.ch.Net.connect(Net.java:568)
        at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:576)
        at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
        at java.base/java.net.Socket.connect(Socket.java:666)
        at java.base/sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:304)
        at java.base/sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:181)
        at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:183)
        at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:531)
        at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:636)
        at java.base/sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:264)
        at java.base/sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:378)
        at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:193)
        at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1241)
        at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1127)
        at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:179)
        at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1661)
        at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1585)
        at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:224)
        at java.base/java.net.URL.openStream(URL.java:1162)
        at org.insightcentre.nlp.saffron.data.SaffronPath.resolve(SaffronPath.java:87)
        at org.insightcentre.nlp.saffron.data.SaffronPath.toFile(SaffronPath.java:51)
        at org.insightcentre.nlp.saffron.term.TermExtraction.<init>(TermExtraction.java:155)
        at org.insightcentre.nlp.saffron.term.TermExtraction.<init>(TermExtraction.java:147)
        at org.insightcentre.nlp.saffron.run.SaffronPipeline.extractTerms(SaffronPipeline.java:287)
        at org.insightcentre.nlp.saffron.run.SaffronPipeline.executePipeline(SaffronPipeline.java:198)
        at org.insightcentre.nlp.saffron.run.SaffronPipeline.execute(SaffronPipeline.java:162)
        at org.insightcentre.nlp.saffron.run.SaffronPipeline.main(SaffronPipeline.java:151)
        at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:279)
        at java.base/java.lang.Thread.run(Thread.java:1589)
Could not resolve: .
java.io.FileNotFoundException: /Users/pbouda/Projects/text-mining/src/saffron/./models/en-pos-maxent.bin (No such file or directory)
        at java.base/java.io.FileInputStream.open0(Native Method)
        at java.base/java.io.FileInputStream.open(FileInputStream.java:219)
        at java.base/java.io.FileInputStream.<init>(FileInputStream.java:158)
        at opennlp.tools.util.model.BaseModel.<init>(BaseModel.java:182)
        at opennlp.tools.postag.POSModel.<init>(POSModel.java:101)
        at org.insightcentre.nlp.saffron.term.TermExtraction.<init>(TermExtraction.java:155)
        at org.insightcentre.nlp.saffron.term.TermExtraction.<init>(TermExtraction.java:147)
        at org.insightcentre.nlp.saffron.run.SaffronPipeline.extractTerms(SaffronPipeline.java:287)
        at org.insightcentre.nlp.saffron.run.SaffronPipeline.executePipeline(SaffronPipeline.java:198)
        at org.insightcentre.nlp.saffron.run.SaffronPipeline.execute(SaffronPipeline.java:162)
        at org.insightcentre.nlp.saffron.run.SaffronPipeline.main(SaffronPipeline.java:151)
        at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:279)
        at java.base/java.lang.Thread.run(Thread.java:1589)

It seems like this domain here is not available anymore:

final String url = "https://server1.nlp.insight-centre.org/saffron-datasets/models/"

Or is there anything else that might go wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant