Git Product home page Git Product logo

vocrf's People

Contributors

timvieira avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

vocrf's Issues

broken link

README has a broken link to the first paper. Change github.com to github.io.

Argument 'groups' has incorrect type (expected list, got map)

First of all, congratulations @timvieira on the draft paper and the code release. This in invaluable for the NLP community.

While testing this code, I faced the following error:

>python vocrf/pos/tagfail.py --tag-type upos --lang English --C .01 --budget 1500 --inner-iterations 1 --outer-iterations 2 --initial-order 0 --max-order 0 --context-count 5 --dump /tmp/foo
context count filter threshold 5
allowed_contexts: 17
(sizes 1: 17)
Features (train) 100.0% (12543/12543) [===============================] 00:00:10
Features (dev) 100.0% (2002/2002) [===================================] 00:00:01
Traceback (most recent call last):
  File "vocrf/pos/tagfail.py", line 111, in <module>
    main()
  File "vocrf/pos/tagfail.py", line 39, in main
    _main(args)
  File "vocrf/pos/tagfail.py", line 105, in _main
    dump = args.dump)
  File "C:\Python36\lib\site-packages\vocrf-1.0-py3.6-win-amd64.egg\vocrf\activeset.py", line 60, in __init__
    self.dense = OnlineProx(self.group_structure(), self.H, L=L, C=self.regularizer)
TypeError: Argument 'groups' has incorrect type (expected list, got map)

activeset.py inherits model.pyx, and the function group_structure returns a map

    def group_structure(self):
        G = groups(self.C)
        return map(lambda g: list(sorted(map(self.context_feature_id, g))), G.values())

On the object OnlineProx in Spom.pxy , the set_groups is decelerated to receive a list:

    def set_groups(self, list groups):
        self.G = len(groups)
        self.groups.clear()    # clear out old version!

Thank you!

Explanation about parameters

Hello,

@timvieira, could you please do a quick explanation about the parameters ? I'm struggling to understand it from the code.

--initial-order
--max-order
--inner-iterations
--outer-iterations
--budget
--context-count

Thank you!

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.