GithubHelp home page GithubHelp logo

Comments (3)

guillaumegenthial avatar guillaumegenthial commented on July 30, 2024

Hi @Jonida88!
Check your numpy version but it might be the case that for some reasons it does not understand the shape given as a list, change it to a tuple like (len(vocab), dim) instead of [len(vocab), dim].
Or check that len(vocab) and dim are integers.

from sequence_tagging.

Jonida88 avatar Jonida88 commented on July 30, 2024

Hi @guillaumegenthial glad that you was answering me i was able to solve it but now i have an other issue i am runing the build_data without error so this mean:

> Building vocab...
-done.33970tokens
Building vocab...
-done.400000 tokens
Writing vocab..
-done.7398 tokens
Writing vocab..
-done.28227 tokens
Writing vocab..
-done.85 tokens

but when i open the file I have this issue:

> Error! C:\Users\admin\ML\data\glove.6B.300d.trimmed.npz is not UTF-8 encoded
> Saving disabled.
> See Console for more details.

the code
`np.savez_compressed(filename_trimmed, embeddings=embeddings)

def get_trimmed_glove_vectors(filename_trimmed):
try:
with np.load(filename_trimmed) as data:
return data["embeddings"]
except IOError:
raise MyIOError(filename_trimmed)`

any idea... thanks for your help...

from sequence_tagging.

DimejiOladepo avatar DimejiOladepo commented on July 30, 2024

I also had this issue. I upgraded my Tensorflow to 2.0.0 and numpy to 1.16.4.

For your new problem, consider saving your glove embedding as a UTF-8 txt file. Opening it in this format doesn't give issues.

I hope this helps.

from sequence_tagging.

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.