search for: words

Displaying 20 results from an estimated 29766 matches for "words".

Did you mean: word
2012 Sep 24
5
Memory usage in R grows considerably while calculating word frequencies
I am working with some large text files (up to 16 GBytes). I am interested in extracting the words and counting each time each word appears in the text. I have written a very simple R program by following some suggestions and examples I found online. If my input file is 1 GByte, I see that R uses up to 11 GBytes of memory when executing the program on a 64-bit system running CentOS 6.3. Why i...
2009 Sep 01
13
Function Testing Reloading Fixtures before assertion
Hey Everyone, I have a function test the is failing (despite the fact the function actually works in the application). I was looking for some debug advice on how to find my problem. Here is the test: def test_should_delete_word assert_equal ''published'', words(:one).status debugger delete :destroy, :id => words(:one).to_param assert_equal ''deleted'', words(:one).status end It fails on the last with: <"deleted"> expected but was <"published">. //My fixture: one: word: cup was_created...
2011 Feb 23
5
Routing problem
In my app i have word model, words_controller and want create new action for word model. I create new method ''test'' in words_controller, and adds: resources :words do member do put ''test'' end end in routes.rb my rake routes output: test_word PUT /words/:id/test(.:format) {:acti...
2006 Apr 11
1
error in which(): recursive default argument reference
Dear useRs, I have written a very simple function to compute some probabilities on words (function is below). The function includes a which() statement applied to a vector of characters (word.split): sapply (word.split, function(x) which(letters==x)). This statement worked as expected when used outside the global function : > word <- "hello" > (word.split &lt...
2009 Sep 30
2
R 2.9.2 crashes when sorting latin1-encoded strings
...es crashes with a segmentation fault. I'm running OS X 10.5.8 and have observed this behaviour both with the i386 and x86_64 builds, in the R.app GUI as well as on the command line. Here's a minimal example that reliably triggers the crash on my machine: ===== print(sessionInfo()) words <- c("aa", "ab", "a\xfc", "a\xe4", "b\xe4", "b\xfc", "\xe4\xfc") str(words) print(table(Encoding(words))) Encoding(words) <- "latin1" # this is the correct encoding! print(table(Encoding(words))) N <- 1000 w...
2009 Nov 13
5
Help with complicated regular expression
Colleagues, I am using R (2.9.2, all platforms) to search for a complicated text string using regular expressions. I would appreciate any help you can provide. The string consists of the following elements: SOMEWORDWITHNOSPACES any number of spaces and/or tabs ( any number of spaces and/or tabs integer any number of spaces and/or tabs ) Examples include: WORD ( 123 ) WORD(1 )
2011 Dec 07
5
Find_by_sql help?
How to make it work with paginator (kaminari)? MySQL and full text search: Words (id, word) @words = Word.find_by_sql(["SELECT id, word, MATCH (word) AGAINST (?) AS Score FROM words WHERE MATCH (word) AGAINST (?) ORDER BY Score Desc, word!=?", params[:search],params[:search],params[:search]]) I can''t add .page(params[:page]).per(5) to the end of "find_...
2008 Mar 14
2
bitreader optimizations
...0xff ? byte_to_unary_table[word] + 24 : ((word) <= 0xffff ? byte_to_unary_table[(word) >> 8] + 16 : ((word) <= 0xffffff ? byte_to_unary_table[(word) >> 16] + 8 : byte_to_unary_table[(word) >> 24])) ) - /* * This should be at least twice as large as the largest number of words -------------- next part -------------- Index: src/libFLAC/bitreader.c =================================================================== RCS file: /cvsroot/flac/flac/src/libFLAC/bitreader.c,v retrieving revision 1.15 diff -u -r1.15 bitreader.c --- src/libFLAC/bitreader.c 28 Feb 2008 05:34:26 -000...
2009 Dec 12
3
help with graphing -- Points in my graph are not apparent, always displayed in steps
...s_list_2.png The scatter plot to the left has all of the data rising in steps however I know that there are cases within my data that do not fit the dotted line. temp<-edat[edat$R1SC>0,,] png("egraph_rules_list_1.png",width=800,height=700,res=72); par(mfrow=c(2,2)); qqplot(x=temp$words,y=temp$R1SC,ylab="With Rules applied SC Shortlist",xlab="Number of Words",col="blue",main="Subordinating Conjunctions\n(Number of Words)",type="p"); hist(temp$R1SC/temp$words,col=heat.colors(max(temp$R1SC)),main="Subortinating Conjunctions \n/...
2001 Feb 20
1
man pages screwed
Hi all. I just got openssh 2.5.1p1 and when I installed it, it's man pages doesn't seem to be formatted right. I'm on Solaris 8. Here is how it looks: man ssh Reformatting page. Please Wait... done (Secure Shell) is a program for logging into a remote machine and for executing commands on a remote machine. It is intended to replace rlogin and rsh, and provide secure encrypted
2006 May 15
11
can you explain this benchmark?
I want to load about 14000 words (a subset of /usr/share/dict/words) into a MySQL table in a migration: class CreateWords < ActiveRecord::Migration def self.up create_table :words, :force => true do |t| t.column :word, :string end say_with_time ''loading words...'' do words...
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 not able to solve this detail. Thank you very much! Joan-Josep Vallb?
2002 Aug 10
4
Samba PDC and Word
I have Samba running as a PDC and it works perfectly, until that is, a Win 2000 user authenticated by the PDC and with a profile on the Samba server wants to access Word and then after a minute or so Word crashes, I got the same result with a Redhat PDC and also with an SME server distro. Informed suggestions other than dump Word are very welcome... John Russell Digital Media Lab University of
2010 Nov 02
1
splitting First 10 words in a string
...s imply differing number of rows: 22928, 10« What am I doing wrong? Thnks, m From: steven mosher [mailto:moshersteven@gmail.com] Sent: Tuesday, November 02, 2010 8:45 PM To: David Winsemius Cc: Matevž Pavlič; Gaj Vidmar; r-help@stat.math.ethz.ch Subject: Re: [R] spliting first 10 words in a string Thanks david. Matevz, maybe I can help explain by doing a very simple and brute force approach as opposed to the way david did it. But you should learn his methods. I will just do a subset of your problem and if you understand how it works then you should be able to ge...
2012 Apr 23
2
Problem extracting enough coefs from gam (mgcv package)
...e latter representing a speaker) and I have added both random intercepts and various random slopes for these random-effect factors. There is no missing data in my dataset. When I try to extract the by-word random intercepts from my model, using coef(model), I find 357 values, equal to the number of words in my dataset. Using coef(model) I get uninformative names: s(Word,1) until s(Word,357), but I'm assuming (I might be wrong though?) that I can link the labels of the words to these values by obtaining the 357 labels from the original dataset: unique(dat[,c("Word")]) Unfortunately, I...
2006 Aug 12
9
Finding the closest match?
...losest match. Ex: If someone types "cat" and "cat" is not in my database, but "bat" is, how could I select bat? Also, if someone types "cat" and I dont have anything remotely close to that then I want to return nothing. Lastly, these are not all english words either. Any help is greatly appreciated. -- Posted via http://www.ruby-forum.com/.
2010 Nov 06
1
Hashing and environments
Hi, I'm trying to write a general-purpose "lexicon" class and associated methods for storing and accessing information about large numbers of specific words (e.g., their frequencies in different genres). Crucial to making such a class practically useful is to get hashing working correctly so that information about specific words can be accessed quickly. But I've never really understood very well how hashing works, so I'm having trouble. Here...
2012 Aug 28
3
[PATCH 1/3] Make FLAC__clz_soft_uint32 static.
--- src/libFLAC/include/private/bitmath.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/libFLAC/include/private/bitmath.h b/src/libFLAC/include/private/bitmath.h index 61b0e03..d32b1a7 100644 --- a/src/libFLAC/include/private/bitmath.h +++ b/src/libFLAC/include/private/bitmath.h @@ -42,7 +42,7 @@ #endif /* Will never be emitted for MSVC, GCC, Intel compilers */
2009 Apr 10
3
Determine the Length of the Longest Word in a String
...I'm new to programming R and have accomplished my goal, but feel that there is probably a more efficient way of coding this. I'd appreciate any guidance that a more advanced programmer can provide. My goal -- I would like to find the length of the longest word in a string containing many words separated by spaces. How I did it -- I was able to find the length of the longest word by parsing the string into a list of separate words, using the function "which.max" to determine the element with the longest length, and then using "nchar" to calculate the length of that pa...
2007 Apr 11
5
WIN32OLE MS Word Help
Hi all, I am trying to create word document in ruby using WIN32OLE. as.. require ''win32ole'' word = WIN32OLE.new("Word.Application") word.visible = true word.documents.add selection = word.selection word.Selection.TypeText "This is some text." ... .. . Can we set header and footer to document? I want to generate a document such that its header contains an