Displaying 4 results from an estimated 4 matches for "write_to_file".
2014 Mar 09
2
[GSOC 2014] Some questions about Letor module
Hi,
I've read the code of letor module. And I have some questions about it:
1. In https://github.com/rishabhmehrotra/xapian/blob/master/xapian-letor/letor_internal.cc#L299, there is a write_to_file method, which save RankList into ?train.txt?. But the format for ?train.txt? is different from the one mentioned in http://trac.xapian.org/wiki/GSoC2011/LTR/Notes#QueryLevelNorm. And in https://github.com/rishabhmehrotra/xapian/blob/master/xapian-letor/letor_internal_refactored.cc#L716, Qid and Doc...
2004 Aug 06
1
LIB usage
...ize);
for(n=0; n<100; n++)
{
read_from_dev(fd1, (float *)input_frame, 1024);
speex_bits_reset(&bits);
speex_encode(enc_state, input_frame, &bits);
nBytesFrame = speex_bits_nbytes(&bits);
nbBytes = speex_bits_write(&bits, byte_ptr, nBytesFrame);
write_to_file(fd2, byte_ptr, nbBytes);
}
speex_bits_destroy(&bits);
speex_encoder_destroy(enc_state);
<p>Thank you
Bruno Rodrigues
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to '...
2014 Mar 09
2
[GSOC 2014] Some questions about Letor module
...mpi-inf.mpg.de/departments/d5/software/inex/, right?
Thank you!
Jiarong Wei
On Mar 9, 2014, at 0:52, Parth Gupta <pargup8 at gmail.com> wrote:
> Hi Jiarong Wei,
>
>
> 1. In https://github.com/rishabhmehrotra/xapian/blob/master/xapian-letor/letor_internal.cc#L299, there is a write_to_file method, which save RankList into ?train.txt?. But the format for ?train.txt? is different from the one mentioned in http://trac.xapian.org/wiki/GSoC2011/LTR/Notes#QueryLevelNorm. And in https://github.com/rishabhmehrotra/xapian/blob/master/xapian-letor/letor_internal_refactored.cc#L716, Qid and Doc...
2012 Sep 17
9
[PATCH] Upgrade vtpmd to berlios version 0.7.4
...ux/unistd.h>
--#include <asm/uaccess.h>
-+#include <sys/types.h>
-+#include <sys/stat.h>
-+#include <fcntl.h>
-+#include <unistd.h>
-
- #define TPM_STORAGE_FILE "/var/tpm/tpm_emulator-1.2."
STR(VERSION_MAJOR) "." STR(VERSION_MINOR)
-
- static int write_to_file(uint8_t *data, size_t data_length)
- {
- int res;
-- struct file *fp;
-- mm_segment_t old_fs = get_fs();
-- fp = filp_open(TPM_STORAGE_FILE, O_WRONLY | O_TRUNC | O_CREAT,
S_IRUSR | S_IWUSR);
-- if (IS_ERR(fp)) return -1;
-- set_fs(get_ds());
-- res = fp->f_op->write(fp, data, data_len...