search for: nwords

Displaying 11 results from an estimated 11 matches for "nwords".

Did you mean: words
2006 Aug 18
1
using R to perform a word count - syntax refinement and incorrect number of dimensions error
...; names(wordcount1) [1] "X" "i" "V3.PD" "V3.PG" "V3.HD" "V3.BY" "V3.SN" "V3.LP" "V3.TD" > wc1 <-c("V3.PD", "V3.HD", "V3.LP") > dim(wordcount1) [1] 178 9 > nwords <- function(x){ + res <- strsplit(as.character(x), "[ \t]+") + res <- lapply(res, length) + unlist(res) + } > sapply(wc1, nwords) V3.PD V3.HD V3.LP 1 1 1 > sapply(paste(wc1[,1], wc1[,2]), nwords) Error in wc1[, 1] : incorrect number of dimensions > dim (w...
2009 Mar 29
2
Burt table from word frequency list
Dear all, I have a word frequency list from a corpus (say, in .csv), where the first column is a word and the second is the occurrence frequency of that word in the corpus. Is it possible to obtain a Burt table (a table crossing all words with each other, i.e., where rows and columns are the words) from that frequency list with R? I'm exploring the "ca" package but I'm
2009 Oct 31
3
Plots with k-means
Hi, I'm doing a k-means cluster with 6 clusters and 15 variables. Any suggestions on how to plot the results? I've tried the standard xy plot, but couldn't get much of it. Thansk in advance, Iuri.
2002 Dec 14
2
[LLVMdev] really long time to compile
...unsigned int A; unsigned int B; unsigned int C; unsigned int D; unsigned int E; unsigned int total[2]; unsigned int buflen; char buffer[128]; }; void sha_process_block (const void *buffer, unsigned long len, struct sha_ctx *ctx) { const unsigned int *words = buffer; unsigned long nwords = len / sizeof (unsigned int); const unsigned int *endp = words + nwords; unsigned int x[16]; unsigned int a = ctx->A; unsigned int b = ctx->B; unsigned int c = ctx->C; unsigned int d = ctx->D; unsigned int e = ctx->E; ctx->total[0] += len; if (ctx->total[0] &...
2010 Oct 19
2
[LLVMdev] Structure memory layout
...king on llc pass.) As you can see above, I have been trying to make more target independent struct type, not completely. Secondly, I also finded union type's target dependent problems through long double type on core-utils package. File isnan.c 28 # define DOUBLE long double ... 66 #define NWORDS \ 67 ((sizeof (DOUBLE) + sizeof (unsigned int) - 1) / sizeof (unsigned int)) 68 typedef union { DOUBLE value; unsigned int word[NWORDS]; } memory_double; Because floating point data type isn't allowed to have bitwise operation, above isnan function converts long double type to unsigned int...
2010 Oct 19
0
[LLVMdev] Structure memory layout
On 19 October 2010 07:57, Jin Gu Kang <jaykang10 at imrc.kist.re.kr> wrote: > Frist, I have been implementing common type for struct type on bitcode > at compilation time using llvm-gcc and then changing common type to target > specific types at code generation time using llc (reconstruct StructLayout). Hi Jin, Apart from bitfields and unions, the struct type is pretty much target
2010 Oct 19
4
[LLVMdev] Structure memory layout
Hi LLVM members, I have been working to make target independent memory layout for struct type(Aggregate type) in my team. I think that struct type has different memory layouts according to each target system in current LLVM. To implement target dependent concept for struct type, Frist, I have been implementing common type for struct type on bitcode at compilation time using llvm-gcc and then
2001 Jul 01
1
indexing
...local.ext=".INDEX.tmp") { download.file(paste(descrip,"/",pkg,".INDEX",sep=""), paste(pkg,local.ext,sep="")) } ## strsplit produces zero-length chars if there are leading spaces dropz <- function(x) { x[nchar(x)>0] } nwords <- function(x) { sapply(strsplit.words(x),function(z)length(dropz(z))) } strsplit.words <- function(x) { strsplit(gsub("[ \t]*"," ",x)," ") } tr.index <- function(fn) { ## cat(fn,"\n") lines <- scan(fn,what=character(),sep="\n&quot...
2016 Sep 26
6
Possible formatting bug in ssh-agent.1 man page
Version info: OpenSSH_7.3p1, OpenSSL 1.0.2i 22 Sep 2016, Arch linux The ssh-agent.1 man page seems to have an indentation oddity, at least, as formatted with recent Arch linux manpage toolset. Here's what appears in the formatted output just after the description of the the "-t" option: ---------- Begin formatted output ------------------------------------- -t life
2011 Apr 16
20
[PATCH 00/20] Switch to ELF modules
From: Matt Fleming <matt.fleming at linux.intel.com> This series fixes some bugs and switches the elflink branch to be entirely ELF modules. It applies on top of, http://syslinux.zytor.com/archives/2011-April/016369.html The deletions in the diff stat below are mainly from deleting com32/elflink/modules (finally!). Now there should be no duplicate code because we don't need COM32 and
2009 Apr 01
0
回复: R-help Digest, Vol 73, Issue 32
...EXT/PLAIN; charset=US-ASCII; format=flowed Maybe not terribly hard, depending on exactly what you need.  Suppose you turn your text into a character vector 'mytext' of words.  Then for a table of words appearing delta words apart (ordered), you can table mytext against itself with a lag: nwords=length(mytext) burttab=table(mytext[-(1:delta)],mytext[nwords+1-(1:delta)]) Add to its transpose and sum over delta up to your maximum distance apart. If you want only words appearing near each other within the same sentence (or some other unit), pad out the sentence break with at least delta ins...