Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Byte Pair Encoding

 
Raj Boopalan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai,
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.
http://www.csse.monash.edu.au/cluster/RJK/Compress/problem.html
http://www.csse.monash.edu.au/cluster/RJK/Compress/bpe.c (for byte pair encoding example code in c)
Regards
B.Rajesh
 
Michael Morris
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Eddy Chang
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Would using the java 'byte' data type instead of 'char' work?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic