User Profile

Collapse

Profile Sidebar

Collapse
tegdim
tegdim
Last Activity: Feb 8 '08, 02:09 PM
Joined: Oct 25 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • tegdim
    started a topic Mozilla HTML parser in Python?

    Mozilla HTML parser in Python?

    Hello,

    I'm working on a machine learning project that I have lots of HTML news stories to work with. I made an online tool that lets me look at these pages via mozilla and hand label them by adding my own tags into the DOM.

    The problem I've found is that the pages I'm using are being tidied by Mozilla. For example, <p/> is changed into proper <p> and </p> tags.

    The problem is that I also...
    See more | Go to post

  • tegdim
    started a topic Mozilla HTML parser in Python?

    Mozilla HTML parser in Python?

    Hello,

    I'm working on a machine learning project that I have lots of HTML news stories to work with. I made an online tool that lets me look at these pages via mozilla and hand label them by adding my own tags into the DOM.

    The problem I've found is that the pages I'm using are being tidied by Mozilla. For example, <p/> is changed into proper <p> and </p> tags.

    The problem is that I also...
    See more | Go to post

  • tegdim
    started a topic ImagingOpException with Affinetransform
    in Java

    ImagingOpException with Affinetransform

    Hello,

    I'm extending a GUI for marking up images with a zoom feature. I got the graphics transformed by applying an Affinetransform to the graphics object like so in the paintComponent method:

    AffineTransform transform = new AffineTransform ();
    g2d.setTransfor m(transform);

    This worked ok and scaled the images but when I tried to use the marking tool to draw polygons around the items of interest the...
    See more | Go to post

  • tegdim
    replied to outputStream.flush() not flushing?
    in Java
    Thanks for the fast replies, I'm still new to IO coding so no doubt it'll be some little mistake in my code. It's just annoying that it works for the first iteration if i just close the stream after writing to it. Thanks again :)...
    See more | Go to post

    Leave a comment:


  • tegdim
    replied to outputStream.flush() not flushing?
    in Java
    Thanks, I gave it a try with a BufferedOutputS tream which should implement the abstract flush() method and it still didn't work. I'll fiddle around with some other ones though and see if they help.
    Thanks...
    See more | Go to post

    Leave a comment:


  • tegdim
    started a topic outputStream.flush() not flushing?
    in Java

    outputStream.flush() not flushing?

    Hello,
    I'm trying to send a string to a subprocesses' output stream in my java program. I'm writing the data to the stream and then trying to flush the stream.

    This, however , isn't actually sending anything to the subprocess (a python program) and the data only actually gets sent to the outputstream when I close the stream. I'm wanting to keep sending data to the subprocess so the writing and flushing is in a loop, but because...
    See more | Go to post

  • Thanks kudos,
    that's just what I was looking for :)
    Thanks again for the fast responses,
    tegdim...
    See more | Go to post

    Leave a comment:


  • tegdim
    started a topic sending/recieving data with a python program
    in Java

    sending/recieving data with a python program

    Hello,
    I'm writing a handwriting recognition application in java that needs to send a string to a python program and then recieve back the output from the python program. I'm intending on this happening fairly often and would like an efficient way of doing this.
    Thanks for any help :)
    tegdim
    See more | Go to post

  • tegdim
    started a topic passing data between python -> java? [solved]

    passing data between python -> java? [solved]

    Hello,
    I'm writing an application that takes pen data and tries to recognize the character and therefore predict the word you are writing. A java file will be returning text to stdout that contains the possible characters that the user just wrote.

    I would like to be able to use nltk_lite in python to find possible words based on the bigram and return these possibilities to the java GUI to allow the user to choose the correct...
    See more | Go to post
No activity results to display
Show More
Working...