Coder Social home page Coder Social logo

Comments (5)

matt-peters avatar matt-peters commented on June 30, 2024 1

It isn't important - dragnet tokenizes the gold standard and web page text then aligns the blocks to gold standard based on overlapping tokens. So as long as you leave some space between each content block it'll handle the test.

from dragnet_data.

matt-peters avatar matt-peters commented on June 30, 2024

All those will depend on what your final goals are for the model. The type of training data you collect and use will determine the final biases of your model. I'd say if you want those things to be considered content then add them to the gold standard, otherwise exclude. In our case, we made a decision to use three classes of output for each block (chrome, content and comments) based on product requirements at the time. If I were to collect data again I'd be tempted to add more classes like some of the things you mentioned (byline, pubdate, etc.) to capture more information.

from dragnet_data.

bdewilde avatar bdewilde commented on June 30, 2024

Sure, makes sense. I'm really only interested in "content", but its definition is a bit subjective, and could certainly be broken up into subclasses. I don't think dragnet's data processing and training code is set up to handle any additional classes such as "content metadata" (byline, pubdate, and such), right?

from dragnet_data.

matt-peters avatar matt-peters commented on June 30, 2024

Not directly but it wouldn't be too hard to add. You could probably just replace the block_model with a multiclass classifier and it would mostly work.

from dragnet_data.

bdewilde avatar bdewilde commented on June 30, 2024

Okay, one more (last?) question: How important is it to maintain whitespace when manually copy/pasting the content data from the raw html rendered in a browser, or is that all handled in dragnet's data_processing.py? Things get tricky when there are images and such between blocks of content...

from dragnet_data.

Related Issues (2)

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.