File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Byte Pair Encoding Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Byte Pair Encoding " Watch "Byte Pair Encoding " New topic

Byte Pair Encoding

Raj Boopalan

Joined: Apr 08, 2003
Posts: 1
I have code related to Byte Pair encoding. It is
specific to C and C++ languages. Is it possible to get the Java code. It
will be helpful for me to proceed further on my work. I tried porting the
code from c to Java, but i have faced problem with the length available in
C & java for character. In java it takes 2 bytes but in C it is one. I have
been trying to get the working code for Java. But till now i didn't get the
proper one. Please help me. (for byte pair encoding example code in c)
Michael Morris
Ranch Hand

Joined: Jan 30, 2002
Posts: 3451
Hi Raj,
Welcome to JavaRanch. Are you having trouble reading the bytes from a file or processing the bytes once read? If you could explain your problem a little more and perhaps post the java code that is giving you grief, maybe we can help you out.
Michael Morris

Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
Eddy Chang

Joined: Apr 05, 2001
Posts: 27
Would using the java 'byte' data type instead of 'char' work?
I agree. Here's the link:
subject: Byte Pair Encoding
It's not a secret anymore!