Comments (11)
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.
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.
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.
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 ๐ !
[0] https://github.com/informagi/REL/blob/master/tutorials/03_Evaluate_Gerbil.md
[1] http://remote_address:1235/gerbil-spotWrapNifWS4Test/myalgorithm
from rel.
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:
from rel.
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.
Thanks for your reply! I get the same error.
from rel.
Hi @BeerTai ,
Have you forwarded your port in your router settings?
from rel.
Sorry, I donโt know much about the situation you mentioned, Iโm directly connected to the campus network
from rel.
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.
Thank you very much for your answers!
from rel.
Related Issues (20)
- REL Integration into multi-linker framework
- Error while running example in README HOT 8
- Tweaking ED pipeline HOT 8
- Wrong ED result despite wildly different context and wiki embeddings
- Partial mention matches get higher scores than full ones
- Community documentation
- Memory Leak in REL API HOT 3
- Workflows are not running
- Publishing to pypi HOT 6
- Error when querying API with specific sentence HOT 5
- Error when using prebuilt docker image HOT 6
- Updating the entity DB periodically HOT 2
- AttributeError when using ngram NER HOT 2
- Celebrate first release on pypi HOT 2
- Server architecture HOT 5
- Add 'hello world' example to documentation
- Hard coded paths HOT 2
- 'bert_conv-td' model HOT 4
- Sklearn and Numpy Dependencies when installing REL from source (Option 3) HOT 2
- Linking to knowledge graphs
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 rel.