Git Product home page Git Product logo

Comments (5)

erickrf avatar erickrf commented on May 29, 2024

What is your numpy version? I remember something similar happening with the latest one.

from nlpnet.

dcaled avatar dcaled commented on May 29, 2024

The version is '1.17.0' (the latest one).

from nlpnet.

biancaberdugo avatar biancaberdugo commented on May 29, 2024

Same error here with nlpnet.SRLTagger()

from nlpnet.

erickrf avatar erickrf commented on May 29, 2024

This was a compatibility issue with numpy 1.17, and is fixed now. Please check if it is working.

from nlpnet.

biancaberdugo avatar biancaberdugo commented on May 29, 2024

Now i have that error:
File "", line 1, in
File "/usr/local/lib/python3.5/dist-packages/nlpnet/taggers.py", line 205, in init
self._load_data()
File "/usr/local/lib/python3.5/dist-packages/nlpnet/taggers.py", line 224, in _load_data
self.boundary_nn = load_network(md_boundary)
File "/usr/local/lib/python3.5/dist-packages/nlpnet/taggers.py", line 38, in load_network
nn = net_class.load_from_file(md.paths[md.network])
File "networkconv.pyx", line 245, in nlpnet.network.ConvolutionalNetwork.load_from_file
File "networkconv.pyx", line 223, in nlpnet.network.ConvolutionalNetwork._load_from_file
File "network.pyx", line 258, in nlpnet.network.Network.padding_left.set
TypeError: can't multiply sequence by non-int of type 'float'

My test code:
import nlpnet
nlpnet.set_data_dir('/home/srl-pt')
tagger = nlpnet.SRLTagger()
tagger.tag(u'O rato roeu a roupa do rei de Roma.')

from nlpnet.

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.