Coder Social home page Coder Social logo

w2v_server_googlenews's People

Contributors

piskvorky 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

w2v_server_googlenews's Issues

UnicodeDecodeError

When trying to run the server using "GoogleNews-vectors-negative300.bin.gz" file, it outputs this error:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 36: ordinal not in range(128)
I also tried with a personal trained file, and get the same error, however it's related with UTF8.
UnicodeDecodeError: 'utf8' codec can't decode byte 0x80 in position 0: invalid start byte

Adding the flag unicode_errors='ignore' has no effect...

Anyone can help?

most_similar method doesn't support 2 or more words

When trying to query for more than word using "most_similar", the server doesn't return any results. Original word2vec has this capability, and it will be helpful if there is any method/approach that allows it.
@piskvorky do you think it's possible to do it? And how can I do it?
Example: "Harry Potter", "iPhone 5", etc.
Thank you in advance.

Issue with compilation

I am getting this error:
python3 w2v_server.py w2v_*.py
2019-03-26 12:34:06,601 : INFO : w2v_server:165 : (MainThread) : running w2v_server.py w2v_server.py
Traceback (most recent call last):
File "w2v_server.py", line 176, in
config_srv = Config(**cherrypy.lib.reprconf.Config(conf_file).get('global'))
File "/home/admin/ai/miniconda/lib/python3.7/site-packages/cherrypy/lib/reprconf.py", line 119, in init
self.update(file)
File "/home/admin/ai/miniconda/lib/python3.7/site-packages/cherrypy/lib/reprconf.py", line 130, in update
self._apply(Parser.load(config))
File "/home/admin/ai/miniconda/lib/python3.7/site-packages/cherrypy/lib/reprconf.py", line 208, in load
return Parser().dict_from_file(input) if is_file else input.copy()
File "/home/admin/ai/miniconda/lib/python3.7/site-packages/cherrypy/lib/reprconf.py", line 196, in dict_from_file
self.read(file)
File "/home/admin/ai/miniconda/lib/python3.7/site-packages/cherrypy/lib/reprconf.py", line 168, in read
self._read(fp, filename)
File "/home/admin/ai/miniconda/lib/python3.7/configparser.py", line 1079, in _read
raise MissingSectionHeaderError(fpname, lineno, line)
configparser.MissingSectionHeaderError: File contains no section headers.

I have been trying to sort this issue for almost a week. I would request any pointers to solve this issue.

online demo not working

the online bonus app not working for me in latest firefox or chrome (with disabled ad blockers and tracking protection)

Compilation Error

at line 55
the server config file needs modification as well , with the file names

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.