Code Monkey home page Code Monkey logo

Comments (5)

Sardhendu avatar Sardhendu commented on August 23, 2024 2

I am struggling with it. Any chance, you guys have figured out how to save it as a HTML?

from bertviz.

jessevig avatar jessevig commented on August 23, 2024

Hi, I think it's probably possible, though I haven't tried it. There is a variable vis_html that could be written to a file I believe:

display(HTML(vis_html))
. Note that there is some javascript in the notebooks that would have to be included as well likely: https://github.com/jessevig/bertviz/blob/master/head_view_bert.ipynb

from bertviz.

Neptune-Trojans avatar Neptune-Trojans commented on August 23, 2024

Any idea how to apply
display(Javascript('window.params = %s' % json.dumps(params)))
display(Javascript(vis_js))

to saved html file ?

from bertviz.

cyber-raskolnikov avatar cyber-raskolnikov commented on August 23, 2024

Hi,
I have implemented the feature that actually allows you to return the HTML visualizations.
You can use it by checking the fork I'm actually trying to pull request right now, it is also available at my forked repo.

Hope it'll be of help, further instructions on how to retrieve them are documented at the updated README.

from bertviz.

jessevig avatar jessevig commented on August 23, 2024

Thanks to @cyber-raskolnikov this is now available in version 1.4.0. See https://github.com/jessevig/bertviz#obtain-html-representations

from bertviz.

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.