Giter Club home page Giter Club logo

Comments (11)

KDercksen avatar KDercksen commented on August 14, 2024

It looks like port 1235 might not be opened to public access in your remote server. Forward it in your network settings so Gerbil can send/receive requests through that port.

from rel.

BeerTai avatar BeerTai commented on August 14, 2024

Thank you for your reply. I checked the port of the remote server. We test port 1235 with the telnet command. Port 1235 is open.

from rel.

BeerTai avatar BeerTai commented on August 14, 2024

When I migrate the code and data from remote to local and then execute it, I still get the same error. At the same time, the terminal did not output any errors or warnings. My api.py as follows:

from http.server import HTTPServer

from REL.entity_disambiguation import EntityDisambiguation
from REL.ner import Cmns, load_flair_ner
from REL.server import make_handler

wiki_version = "wiki_2014"
base_url = "/Users/beertai/Desktop/Entity_linking/REL-master/data"

config = {
    "mode": "eval",
    "model_path": "{}/{}/generated/model".format(base_url, wiki_version),  # or alias, see also tutorial 7: custom models
}

model = EntityDisambiguation(base_url, wiki_version, config)

# Using Flair:
tagger_ner = load_flair_ner("ner-fast")

# Alternatively, using n-grams:
tagger_ngram = Cmns(base_url, wiki_version, n=5)

server_address = ("127.0.0.1", 5555)
server = HTTPServer(
    server_address,
    make_handler(
        base_url, wiki_version, model, tagger_ner
    ),
)

try:
    print("Ready for listening.")
    server.serve_forever()
except KeyboardInterrupt:
    exit(0)

from rel.

mickvanhulst-TomTom avatar mickvanhulst-TomTom commented on August 14, 2024

Hi @BeerTai, what about GERBIL middleware [0]? After running that, you should be able to verify if GERBIL is running correctly by going to the respective url [1]. I added a screenshot of what you should see. If this is not what you're seeing, then your port is not correctly setup.

Hope this helps ๐Ÿ‘ !

image

[0] https://github.com/informagi/REL/blob/master/tutorials/03_Evaluate_Gerbil.md
[1] http://remote_address:1235/gerbil-spotWrapNifWS4Test/myalgorithm

from rel.

BeerTai avatar BeerTai commented on August 14, 2024

Thank you for your reply! I can see the same screenshot as you. Data and code are local. The output of GERBIL middleware as follows:
Screen Shot 2020-11-30 at 3 14 47 PM
Screen Shot 2020-11-30 at 3 15 34 PM

from rel.

mickvanhulst-TomTom avatar mickvanhulst-TomTom commented on August 14, 2024

Hi @BeerTai,

You are try to serve GERBIL requests to your local host, this address is only accessible from within your network. You will need to replace this with the a public IP address, which you can find by going to e.g.: https://whatismyipaddress.com/

from rel.

BeerTai avatar BeerTai commented on August 14, 2024

Thanks for your reply! I get the same error.
Screen Shot 2020-11-30 at 3 39 49 PM
Screen Shot 2020-11-30 at 3 41 58 PM

from rel.

mickvanhulst-TomTom avatar mickvanhulst-TomTom commented on August 14, 2024

Hi @BeerTai ,

Have you forwarded your port in your router settings?

from rel.

BeerTai avatar BeerTai commented on August 14, 2024

Sorry, I donโ€™t know much about the situation you mentioned, Iโ€™m directly connected to the campus network

from rel.

mickvanhulst-TomTom avatar mickvanhulst-TomTom commented on August 14, 2024

Hi @BeerTai ,

Then you probably have to contact your network administrator and ask him about port forwarding [0]. This is not something we can help you with as it would require network access.

[0] https://en.wikipedia.org/wiki/Port_forwarding

from rel.

BeerTai avatar BeerTai commented on August 14, 2024

Thank you very much for your answers!

from rel.

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.