Skip to content

questions re: creating my own data #2

Open

Description

@bdewilde

Hi, I'm currently compiling additional, more modern html documents with gold standard content + comments for use in training dragnet models, and I have a few questions:

  • Should I consider the text of embedded tweets, posts, quotations, image captions, and other rich media to be content?
  • Should I include author byline, pubdate, etc. at the start of an article as content? What about typical addenda at the bottom of the article?
  • Should I include non-English language content?

Thanks for your help!

Activity

  1. matt-peters commented on Jan 9, 2017

    @matt-peters
    Contributor

    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.

  2. bdewilde commented on Jan 9, 2017

    @bdewilde
    Author

    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?

  3. matt-peters commented on Jan 9, 2017

    @matt-peters
    Contributor

    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.

  4. bdewilde commented on Jan 9, 2017

    @bdewilde
    Author

    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...

  5. matt-peters commented on Jan 9, 2017

    @matt-peters
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions