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...
User Profile
Collapse
-
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... -
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... -
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 :)... -
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...Leave a comment:
-
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... -
Thanks kudos,
that's just what I was looking for :)
Thanks again for the fast responses,
tegdim...Leave a comment:
-
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 -
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...
No activity results to display
Show More
Leave a comment: