timwangmusic / autocomplete-system Goto Github PK
View Code? Open in Web Editor NEWRestful Autocomplete service with Neo4j graph backend. Returns top suggestions.
License: MIT License
Restful Autocomplete service with Neo4j graph backend. Returns top suggestions.
License: MIT License
for making persian terms the app not work why?
does not neo4j support utf8?
I am trying to run the profiler.py from the tests directory, can you check why the profiler will not find the src directory , clearly os.listdir is showing that it is there !
(py37) sandeeppanku@sandeeppanku-System-Product-Name:~/Public/Code/Autocomplete-System$ python ./tests/profiler.py
Current working directory /home/sandeeppanku/Public/Code/Autocomplete-System
['.gitignore', '.git', 'LICENSE', 'service_flask.py', 'prefix_tree.png', 'README.md', 'static', '.travis.yml', 'src', 'autoenv', 'templates', 'logs', 'data', '_config.yml', 'tests', 'app.py', 'logging.config']
Traceback (most recent call last):
File "./tests/profiler.py", line 10, in <module>
from src.Server import Server
ModuleNotFoundError: No module named 'src'
"""
This file is used to time profile
"""
import os
#os.chdir("../")
print(f"Current working directory {os.getcwd()}")
print(f"{os.listdir()}")
from src.Server import Server
import time
import requests
#words file
PATH = "https://github.com/dwyl/english-words/blob/master/words_alpha.txt"
class profiler():
def __init__(self, file):
self.wordsfile = file
response = requests.get(self.wordsfile)
data = response.text
def _profile(self):
return
if __name__ == "__main__":
prof = profiler(PATH)
Is it broken, I am trying to do search but no Autocomplete is there, Small video tutorial or screen shots could be helpful.
I have created Graph using
def init(self,uri = "bolt://localhost:7687",username='neo4j', password='password'):
self.graph = Graph(uri,user=username, password=password,auth=('neo4j', 'password'))
I have tried to change the port but I am getting the same issue.
Traceback (most recent call last):
File "D:\Python36\lib\site-packages\py2neo\database.py", line 88, in new
inst = cls._instances[key]
KeyError: 'd158bbdc01814f7bdce8ebe3a78d26bc'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\machine_learning_ai_tasks\Auto-complete-System-master\app.py", line 49, in
app = Application(root)
File "D:\machine_learning_ai_tasks\Auto-complete-System-master\app.py", line 16, in init
self.app = Server()
File "D:\machine_learning_ai_tasks\Auto-complete-System-master\src\Server.py", line 38, in init
self.db = Database.DatabaseHandler()
File "D:\machine_learning_ai_tasks\Auto-complete-System-master\src\Database.py", line 12, in init
self.graph = Graph()
File "D:\Python36\lib\site-packages\py2neo\database.py", line 298, in new
database = Database(uri, **settings)
File "D:\Python36\lib\site-packages\py2neo\database.py", line 97, in new
user_agent=connection_data["user_agent"])
File "D:\Python36\lib\site-packages\neo4j\v1\api.py", line 127, in new
return subclass(uri, **config)
File "D:\Python36\lib\site-packages\neo4j\v1\direct.py", line 73, in new
pool.release(pool.acquire())
File "D:\Python36\lib\site-packages\neo4j\v1\direct.py", line 44, in acquire
return self.acquire_direct(self.address)
File "D:\Python36\lib\site-packages\neo4j\bolt\connection.py", line 453, in acquire_direct
connection = self.connector(address, self.connection_error_handler)
File "D:\Python36\lib\site-packages\neo4j\v1\direct.py", line 70, in connector
return connect(address, security_plan.ssl_context, error_handler, **config)
File "D:\Python36\lib\site-packages\neo4j\bolt\connection.py", line 707, in connect
raise last_error
File "D:\Python36\lib\site-packages\neo4j\bolt\connection.py", line 697, in connect
s = _connect(resolved_address, **config)
File "D:\Python36\lib\site-packages\neo4j\bolt\connection.py", line 587, in _connect
raise ServiceUnavailable("Failed to establish connection to {!r} (reason {})".format(resolved_address, error.errno))
neo4j.exceptions.ServiceUnavailable: Failed to establish connection to ('127.0.0.1', 7687) (reason 10061)
please provide some guidance to resolve the issue.
Is there any Neo4j built-in function to find similar terms? this app not work for similar terms
Hi, am new to server-side coding. I have done the following:
For reference:
Anaconda installed in E:\Anaconda
This code downloaded in E:\codes\Autocomplete
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.