Commit Graph

383 Commits

Author SHA1 Message Date
crista
ebeba3d34c Merge pull request #50 from amcheng/master
replace list comprehension with map function
2019-12-16 15:54:38 -08:00
Crista Lopes
9acd61f160 Add this one more train/validation data generator 2019-11-26 00:56:33 -08:00
Crista Lopes
c7cb993a56 Very rough learning to count words 2019-11-26 00:38:29 -08:00
Crista Lopes
a18c4c6980 Learn to normalize characters given a line, and using the model of the no-learning version 2019-11-26 00:21:25 -08:00
Crista Lopes
e2c531fc5c Learn how to normalize one character at a time 2019-11-26 00:02:24 -08:00
Crista Lopes
de77c8a224 Rename 2019-11-26 00:02:03 -08:00
Crista Lopes
75e89c1acf Added same as no-learning but with learning. Doesn't learn. 2019-11-25 22:53:41 -08:00
Crista Lopes
a0b28a985a Simple program to normalize characters 2019-11-25 20:04:25 -08:00
Crista Lopes
659e43e92f First simple word counter. Doesn't work on pride-prejudice -- OOM. It works on half of it. 2019-11-24 19:04:13 -08:00
Alex Cheng
3250ac1188 replace list comprehension with map function 2019-11-19 19:32:40 -08:00
Crista Lopes
88bb3ee2df Better 2019-08-13 09:17:37 -07:00
Crista Lopes
d202fea352 Format to fit in 1 page 2019-08-12 20:15:33 -07:00
Crista Lopes
cc86a2cebc Rename these too 2019-08-12 19:44:32 -07:00
Crista Lopes
eb85af9982 Place the APL example in the right folder 2019-08-12 14:39:29 -07:00
Crista Lopes
61d5f74ad9 Massive renaming! 2019-08-12 14:38:16 -07:00
Crista Lopes
e6c1238a56 Better comment 2019-08-12 14:19:05 -07:00
Crista Lopes
053bec0fc1 Clean up APL code and sprinkle an example in comments 2019-08-12 14:15:10 -07:00
Crista Lopes
ae79757199 APL, baby! 2019-08-11 19:07:16 -07:00
Crista Lopes
38095fd076 Move experimental code to zothers folder 2019-08-11 08:54:20 -07:00
Crista Lopes
ed8c3cabaa Finally rewrote the code for Python3! 2018-12-13 19:57:17 -08:00
crista
4449f0b7ba Merge pull request #37 from cclauss/modernize-python2-code
Modernize Python 2 code to get ready for Python 3
2018-12-13 12:04:20 -08:00
crista
32af06377d Merge pull request #36 from imarudina/master
Stop words contained '\n\n' due to an empty line in stop_words.txt
2018-12-13 11:47:25 -08:00
crista
1e3ec4932a Merge pull request #39 from tingstad/patch-1
tf-03.py: unused variable
2018-12-13 11:27:48 -08:00
crista
f196134fc1 Merge pull request #40 from gqqnbig/stop
Fix TypeError: 'bool' object is not callable
2018-12-13 11:23:37 -08:00
crista
037ef4e621 Merge pull request #41 from j10sanders/patch-1
Fix function arguments in comment
2018-12-07 11:06:02 -08:00
crista
aceaf60ce1 Merge pull request #42 from ericandrewlewis/patch-1
Wrap code in a preformatted block
2018-12-07 11:05:02 -08:00
crista
18d25aa2f0 Merge branch 'master' into modernize-python2-code 2018-12-06 19:51:27 -08:00
Crista Lopes
685450ef92 Started to port the code to Python 3. Ugh! 2018-12-06 19:33:56 -08:00
Eric Lewis
f6a7e671c5 Wrap code in a preformatted block 2018-10-08 10:55:38 -04:00
Jonathan Sanders
b6d0b86e56 Fix function arguments in comment 2018-07-13 12:24:50 -04:00
Qiqi Gu
f8233e34ff Fix TypeError: 'bool' object is not callable
Thread has a method called stop, ActiveWFObject._stop will override the parent one. Therefore I have to rename _stop.
2018-07-09 09:06:50 -07:00
tingstad
53a60ea121 tf03.py: unused variable
Removed unused variable "found_at"
2018-06-17 18:07:14 +02:00
cclauss
1fa9eb3c2b Modernize Python 2 code to get ready for Python 3 2018-03-21 21:41:35 +01:00
Irina Marudina
4224ba4ba9 monolith: remove unused variable 2018-03-21 18:37:24 +02:00
Irina Marudina
c93bc2fbfd Stop words contained '\n\n' due to an empty line in stop_words.txt 2018-03-21 15:46:37 +02:00
crista
d521abd5d7 Merge pull request #29 from bmistree/master
Add a single-line code golf example
v1.0 v2.7
2016-05-21 08:14:41 -07:00
bmistree
c94acde9bb Take filename argument from program arguments
Previously, I had hard-coded this. This commit also makes it so that
the script can be executed from any current working directory and
(hopefully) makes it platform agnostic by using os.path.join to build
the path to the stop words file.
2016-05-20 22:34:44 -07:00
bmistree
a5e05c411c Add a single-line code golf example 2016-05-20 00:19:51 -07:00
crista
aac9f9899c Update README.md
No longer accepting programs in different programming languages because students!
2015-01-31 16:18:34 -08:00
crista
3607d6d944 Merge pull request #25 from rtoal/master
A first try at a Ruby golf
2015-01-31 16:09:13 -08:00
crista
f96d66e5c6 Merge pull request #26 from sivabalan/patch-1
Fixed typo with wordfreqs variable
2015-01-31 16:08:44 -08:00
crista
b9833c4e52 Merge pull request #24 from JKesMc9tqIQe9M/master
removed an extraneous whitespace
2015-01-31 16:06:21 -08:00
sivabalan
c9c37d8072 Fixed typo with wordfreqs variable 2015-01-31 15:16:39 -08:00
Ray Toal
3169b4b509 A first try at a Ruby golf 2015-01-28 09:29:05 -08:00
JKesMc9tqIQe9M
efe7884167 removed an extraneous whitespace 2014-11-08 10:08:34 -05:00
crista
47c5cd0d5c Added link to book 2014-10-20 08:55:03 -07:00
Crista Lopes
3b328c2042 Made the main block clearer 2014-03-19 17:01:15 -07:00
Crista Lopes
2f483b1742 Make the main code more readable 2014-03-19 15:39:37 -07:00
Crista Lopes
d8721e123e Fixed line break 2014-03-18 16:46:47 -07:00
Crista Lopes
0311a99b47 Made the recursive program a bit simpler 2014-03-18 16:44:31 -07:00