Giter VIP home page Giter VIP logo

autocomplete-system's People

Contributors

dependabot[bot] avatar prakharrr avatar sananand007 avatar timwangmusic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

autocomplete-system's Issues

UTF8 chars not work

for making persian terms the app not work why?
does not neo4j support utf8?

Issue with accessing 'src'

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)

Broken ?

Is it broken, I am trying to do search but no Autocomplete is there, Small video tutorial or screen shots could be helpful.

py2neo Graph creation issue.using py2neo 4.0.0. version

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.

image

Text Similarity

Is there any Neo4j built-in function to find similar terms? this app not work for similar terms

Getting "unable to configure handler 'info_file_handler'" error

Hi, am new to server-side coding. I have done the following:

  1. Routine install of Anaconda. Did not edit any path variables
  2. pip install py2neo
  3. Change dir to directory where this code is
  4. Ran python app.py from cmd prompt
  5. Gives me the above error: Unable to configure handler 'info_file_handler'
    Is this a path issue? Would appreciate your help.

For reference:
Anaconda installed in E:\Anaconda
This code downloaded in E:\codes\Autocomplete

Thanks

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.