|
Hi Ala'a In GNU APL every cell of a value takes 20 bytes. In your example in function hist, ∪⍵ is probably the entire alphabet with 26 characters and therefore the outer product has 26×6.2 Mio = 161,200,000 cells or 3.2 Gigabyte. Depending on your OS this will give you a WS full or the machine will start swapping. The nature of the underlying problem seems to be fairly sequential, so using the outer product (and reducing it right after having created it) may not be the best way of achieving the desired result. /// Jürgen On 09/09/2016 11:39 PM, Ala'a Mohammad
wrote:
Hi, I'm trying to create simple spell corrector (Norvig at http://norvig.com/spell-correct.html) in APL. I tried but stumbled upon the frequency/count stage and could not move further. The stopper was either WS Full, or apl process killed. I'm assuming the main issue is 'lack of experience with APL', and thus the inefficient coding. |
- Re: [Bug-apl] Spell corrector - APL Kacper Gutowski
- Re: [Bug-apl] Spell corrector - APL Ala'a Mohammad
- Re: [Bug-apl] Spell corrector - APL Juergen Sauermann
- Re: [Bug-apl] Spell corrector - APL Juergen Sauermann
- Re: [Bug-apl] Spell corrector - APL Ala'a Mohammad
- Re: [Bug-apl] Spell corrector - APL Jay Foad
- Re: [Bug-apl] Spell corrector - APL Ala'a Mohammad
- Re: [Bug-apl] Spell corrector - APL Jay Foad
- Re: [Bug-apl] Spell corrector - AP... Juergen Sauermann
- Re: [Bug-apl] Spell corrector - AP... Ala'a Mohammad
- Re: [Bug-apl] Spell corrector - APL Juergen Sauermann
