mersenneforum.org  

Go Back   mersenneforum.org > Math Stuff > Computer Science & Computational Number Theory > PARI/GP

Reply
 
Thread Tools
Old 2010-09-09, 12:59   #1376
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3·1,993 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
I've got the basics of math English down with this code though I'll make more list.
Good idea. I'm not sure my list is useful here -- these are complicated and hard-to-generalize examples.

Quote:
Originally Posted by science_man_88 View Post
if you look at it correcting typo is a task it would need to be AI complete.
I hope not... that looks doable in most cases to me, with some form of spell-check plus a trigram (?) prediction algorithm run across large bodies of text. Not an easy task, though!
CRGreathouse is offline   Reply With Quote
Old 2010-09-09, 18:32   #1377
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

20C016 Posts
Default

Quote:
Originally Posted by CRGreathouse View Post
Good idea. I'm not sure my list is useful here -- these are complicated and hard-to-generalize examples.



I hope not... that looks doable in most cases to me, with some form of spell-check plus a trigram (?) prediction algorithm run across large bodies of text. Not an easy task, though!
I've been playing cards most of the day and thinking about this I think I could manage it and cut the memory cost down by using a form of FaR for spell check.

then find and replace (possibly with find and replace on the Vec to capture multiple forms of the same thing (not quite sure how to do this though)).

saves on building new scripts as well if we could do it this way.
science_man_88 is offline   Reply With Quote
Old 2010-09-09, 18:41   #1378
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

20C016 Posts
Default

in fact FaR could be used in:

1) encoding and decoding shi*t(* is wild card but can be f or no character in this case) ciphers

2)Find and Replace

3)Find and replace of spelling errors.

and many other ways I suspect.
science_man_88 is offline   Reply With Quote
Old 2010-09-09, 20:10   #1379
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

10111010110112 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
in fact FaR could be used in:

1) encoding and decoding shi*t(* is wild card but can be f or no character in this case) ciphers

2)Find and Replace

3)Find and replace of spelling errors.

and many other ways I suspect.
Yes, it's quite a general function. More general yet (but harder!) would be a regular expression engine.
CRGreathouse is offline   Reply With Quote
Old 2010-09-09, 20:27   #1380
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26·131 Posts
Default

Quote:
Originally Posted by CRGreathouse View Post
Yes, it's quite a general function. More general yet (but harder!) would be a regular expression engine.
2 and 3 are things we'd likely want in the polished version.

spell check then pass to a math based FaR .

we could put it in a file to spell check with a already built spell checker program (though this sounds harder than another FaR based script) then read it into FaR
also I think I need one more thing in FaR as if I realized correct it only works fully when your phrase ends with what you're searching for.
science_man_88 is offline   Reply With Quote
Old 2010-09-09, 20:29   #1381
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26·131 Posts
Default

Quote:
Originally Posted by CRGreathouse View Post
Yes, it's quite a general function. More general yet (but harder!) would be a regular expression engine.
yeah the hard part from my script I see is the original things to look for.
science_man_88 is offline   Reply With Quote
Old 2010-09-09, 21:44   #1382
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26×131 Posts
Default

Quote:
Originally Posted by CRGreathouse View Post
trigram (?)
http://en.wikipedia.org/wiki/Trigram
science_man_88 is offline   Reply With Quote
Old 2010-09-09, 23:34   #1383
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3·1,993 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
spell check then pass to a math based FaR .

we could put it in a file to spell check with a already built spell checker program (though this sounds harder than another FaR based script) then read it into FaR
also I think I need one more thing in FaR as if I realized correct it only works fully when your phrase ends with what you're searching for.
If you build a spell checker (whether based on your FaR script or not) that would be pretty cool -- maybe even science fair-worthy, if you're at a level that does that sort of thing.
CRGreathouse is offline   Reply With Quote
Old 2010-09-09, 23:35   #1384
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3×1,993 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
Yes, I was talking about what that page calls word-level trigrams. See
https://secure.wikimedia.org/wikiped...#n-gram_models
CRGreathouse is offline   Reply With Quote
Old 2010-09-09, 23:56   #1385
science_man_88
 
science_man_88's Avatar
 
"Forget I exist"
Jul 2009
Dumbassville

26·131 Posts
Default

now this is sounding complex lol.
science_man_88 is offline   Reply With Quote
Old 2010-09-09, 23:59   #1386
CRGreathouse
 
CRGreathouse's Avatar
 
Aug 2006

3·1,993 Posts
Default

Quote:
Originally Posted by science_man_88 View Post
now this is sounding complex lol.
Yes, it *is* rather complex. But it's easier than the final project, and should be good practice. Also, you could do it -- not that it would be easy, but with how far you've come I have no doubt.
CRGreathouse is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why do I sometimes see all the <> formatting commands when I quote or edit? cheesehead Forum Feedback 3 2013-05-25 12:56
Passing commands to PARI on Windows James Heinrich Software 2 2012-05-13 19:19
Ubiquity commands Mini-Geek Aliquot Sequences 1 2009-09-22 19:33
64-bit Pari? CRGreathouse Software 2 2009-03-13 04:22
Are these commands correct? jasong Linux 2 2007-10-18 23:40

All times are UTC. The time now is 23:11.


Fri Aug 6 23:11:56 UTC 2021 up 14 days, 17:40, 1 user, load averages: 4.26, 4.21, 4.04

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.