Commit Graph
100 Commits
Author SHA1 Message Date
bjorn 498466f8b2 Rename PGF Server cabal packages to pgf-server (was gf-server). 2008-12-05 19:10:51 +00:00
bjorn 934a5fc120 Added more functions to gf-server-jsapi.js 2008-12-05 19:08:58 +00:00
bjorn 91cc5f44c6 Update src/server/simple-client.html and gf-server-jsapi.js to work with current pgf server. 2008-12-05 19:00:20 +00:00
bjorn e0572650b3 pgf server: return 1 result for /random without limit argument. 2008-12-04 13:54:43 +00:00
bjorn bf7d2ff90c Don't try to include Bulgarian in the bronzeage.pgf, since it seems to be missing from the repo. 2008-12-01 22:13:08 +00:00
bjorn 45df272fcd Get A2, married_A2 from Lexicon in parsing grammar, since OALS doesn't have any A2's. 2008-12-01 21:40:57 +00:00
bjorn 52a138d4f3 Copy OALD files after building parse grammar. 2008-12-01 21:40:33 +00:00
bjorn b8893fc0b5 Remove more unused stuff from GF.Data.Operations. 2008-12-01 21:33:53 +00:00
bjorn 6728ef2dcf Fix URL of delete-last.png in fridge app. 2008-12-01 20:45:07 +00:00
bjorn f50c4270ad Remove lots of old unused stuff from GF.Data.Operations. 2008-11-27 10:55:24 +00:00
bjorn 1145aefdbb More efficient implementation of topological sort.
Profiling the compilation of the OALD lexicon showed that 90-95% of the time was spent in topoSort. The old implementation was quadratic. Replaced this with O(E + V) implementation, in GF.Data.Relation. This gave a 10x speed-up (~ 25 sec instead of ~270 sec) for compiling ParseEng and OaldEng.
2008-11-27 10:29:29 +00:00
bjorn a4e731cc33 Move Graph, Relation and Graphviz modules from GF.Speech to GF.Data. 2008-11-27 08:43:08 +00:00
bjorn a4f0d4f0d7 Remove ununsed GF.Source.SharedString module. 2008-11-27 08:36:18 +00:00
bjorn 720932d751 Don't use string sharing in LexGF.
Profiling showed that when loading a large .gfo file, shareString was responsible for
15-18% of the CPU time, and a lot of the allocation. Since we already use ByteStrings for 
reading the source files, shareString mostly has the effect of creating lots 
of small ByteStrings instead of one large one. Since the plain size of the .gfo is seldom
a problem (unlike when it was read as a String), it is ok to keep the whole file 
as one ByteString in RAM, and have all tokens point into that.
Profiling after the change showed 15-20% reduction in CPU time and in total allocation.
2008-11-26 16:19:54 +00:00
bjorn 5dee98234e My profiling showed that the BinTree operations were responsible for about 60% of the CPU time when reading a large .gfo file. Replacing BinTree by Data.Map reduced this to about 6%, which meant about 50% reduction in total CPU time. 2008-11-26 15:44:22 +00:00
bjorn 260e13146e Get 'make prof' working with GHC 6.8 2008-11-26 14:56:46 +00:00
bjorn 3c47226549 Use OALD in ParseEng. 2008-11-26 14:56:34 +00:00
bjorn a61a6d5d43 OALD: split lexicon into two: one for open classes and one for closed classes. 2008-11-26 14:35:35 +00:00
bjorn 66785b2020 Added generated OALD files (Oald.gf and OaldEng.gf) to repo. 2008-11-26 14:17:55 +00:00
bjorn a8f0dc0cb2 Added original OALD files to repo. 2008-11-26 14:17:35 +00:00
bjorn e651a7bceb OALD: More info in generated header. 2008-11-26 14:17:16 +00:00
bjorn 335394de6a OALD: clean up asc2gf script. 2008-11-26 14:00:10 +00:00
bjorn 6e14352501 OALD: remove * and add comment for guessed irregular noun plural forms. 2008-11-26 13:38:34 +00:00
bjorn c66f94b06c OALD: Use verbs from IrregEng when possible. 2008-11-26 13:33:53 +00:00
bjorn f0ab94825f Added ParadigmsEng.mkV : Str -> V -> V, which adds a prefix to an existing verb. 2008-11-26 13:33:22 +00:00
bjorn 3d1bebbd32 First working version of OALD dictionary conversion. Still missing: irregular verbs, irregular nouns, better handling of singular- and plural-only nouns. 2008-11-25 20:09:50 +00:00
bjorn 450a34f2d8 Added ParadigmsEng.mkConj. 2008-11-25 19:53:22 +00:00
bjorn fbf266372a First version of OALD alsmost working. 2008-11-25 14:50:16 +00:00
bjorn 59ff172b7d Started working on oald2gf script. 2008-11-21 16:50:07 +00:00
bjorn b047a99a84 Added CompCN to ParseEng. Perhaps this should move to NounEng. 2008-11-21 12:33:56 +00:00
bjorn 93ab59dd58 pgf.fcgi: don't install any signal handlers. Since we didn't look at the variable they set, we just created zombies. 2008-11-20 15:00:53 +00:00
bjorn b56a06fdda gwt: rearragne html files and paths to get nicer URLs. 2008-11-20 14:06:06 +00:00
bjorn 61507730e8 Added CAdvNP and CAdvSSlash to ParseEng. Maybe they should go in Noun.gf instead? 2008-11-20 10:32:15 +00:00
bjorn 7dbaae50a9 Fix permissions of pgf server error log. 2008-11-20 09:52:18 +00:00
bjorn 3195979031 gf-server lighttpd.conf: put fcgi socket in basedir, with PID in name. This helps avoid clashed when running muyltiple gf servers on the same machine. 2008-11-20 08:56:17 +00:00
bjorn 86878c0cf4 Updated CompatibilityEng to compile with case-inflected Num and Ord. 2008-11-19 14:28:50 +00:00
bjorn 9d1d7dd3c8 Fix good_A in BigLexEng. 2008-11-19 13:57:42 +00:00
bjorn 76f299b93a Updated ParseEng for case-inflected Num. 2008-11-19 13:15:36 +00:00
bjorn 0c538bf80b Added case inflection to English numerals and adjectives, in order to get genitive forms of stand-alone determiners that use Num or Ord right. 2008-11-19 13:11:45 +00:00
bjorn bd1417e21a Added overloaded mkQuant to ParadigmsEng. 2008-11-18 15:30:53 +00:00
bjorn f3f29a4683 The stand-alone form of no_Quant should be "none", not "no". 2008-11-18 15:20:40 +00:00
bjorn 7a7f3247b1 Remove "at least" and "at most" from parsing grammar, since they are now in structural. 2008-11-18 15:20:14 +00:00
bjorn 27168a053d Remove no_Det, nobody_NP and nothing_NP from the parsing grammar, sicne they are now in Structural. 2008-11-18 12:38:03 +00:00
bjorn bc7cb25a09 gwt: fix gf-gwt.jar compilation to use the dnd jar 2008-11-11 22:13:12 +00:00
bjorn 1a6d90ff66 Frdige: hide magnet bag when empty. 2008-11-11 12:44:59 +00:00
bjorn a9d870d76a make food.pgf in src/server from resource-foods 2008-11-11 12:26:00 +00:00
bjorn 18e80ce5de Towards better layout of Fridge app. 2008-11-11 11:00:33 +00:00
bjorn c6968b626c SRG generation: renameCats now gives new names to all cates used in the grammar, on RHS or LHS. This avoids a crash in non-recursive SRGS generation. The crash happend becase the bottom-up filter has not yet been done when renameCats is called. 2008-11-09 14:27:34 +00:00
bjorn a24fab7873 Fixed PGF file overwriting issue reported by Peter, by refusing to overwrite any of the input pgf files. Maybe the right fix would be to read the PGF strictly? 2008-11-09 13:58:28 +00:00
bjorn d9ef4d7e01 Nicer brushed metal background. 2008-11-08 20:09:24 +00:00
bjorn 4e921573f4 Symbolic.symb: overload versions with Quant instead of Det. 2008-11-07 16:15:53 +00:00
bjorn f0eed5cd69 Added variants of Symbolic.symb that take Numeral instead of Card. 2008-11-07 14:30:32 +00:00
bjorn e2de6a8555 More work on IE 6 bugs. 2008-11-07 09:55:56 +00:00
bjorn 818d9bc122 Fridge: don't carch on start-up in IE6. 2008-11-07 09:07:58 +00:00
bjorn 1ab8dbbd6a Added IE6-only testing module for FridgeApp. 2008-11-07 08:56:19 +00:00
bjorn 654f0b968f Fridge: Added Delete Last button. 2008-11-06 14:31:06 +00:00
bjorn 0d29ad9a6a The PGF GWT module needs to inherit the DnD stuff. 2008-11-06 14:24:38 +00:00
bjorn f866b07f68 Fridge: prefix panel layout tweak. 2008-11-06 14:13:24 +00:00
bjorn 14ea149c7f Fridge: show initial letters in magnet bag when needed. 2008-11-06 14:11:32 +00:00
bjorn 68ee5c15a1 Fridge: minor refactoring. 2008-11-06 13:47:40 +00:00
bjorn 637bdfdb93 Fridge: allow clicks in addition to drag and drop. Don't remove magnets when dnd-ing. 2008-11-06 13:42:16 +00:00
bjorn 58bd23759f Use drag and drop in Fridge app. 2008-11-06 10:15:38 +00:00
bjorn 3f092a5c7a Brushed metal look for fridge app. 2008-11-05 21:03:23 +00:00
bjorn 5f78c8fa67 Make fridge magnets look more like magnets. 2008-11-05 16:47:52 +00:00
bjorn 29ad828b9d GWT: big refactoring of the translator and fridge apps. 2008-11-05 16:36:52 +00:00
bjorn cf079aa6e4 Get Fridge to compile with changes in Translate. 2008-11-04 14:12:37 +00:00
bjorn 13042d7dac Forgotten record in src/server/Makefile. 2008-11-04 13:57:27 +00:00
bjorn 84aebb8ab8 Added GWT compile instructions to src/server/README. 2008-11-04 13:32:44 +00:00
bjorn c5bc06c36d GWT: changed input na doutput language boxes to not pretend that they allow multiple selections. 2008-11-04 10:44:23 +00:00
bjorn f1fcee964f pgf-server: write stderr to pgf-error.log, since lighttpd closes stderr for fastcgi processes. 2008-11-04 09:28:21 +00:00
bjorn a6905d654d Use next-lib when building example PGFs in src/server 2008-11-04 09:10:50 +00:00
bjorn 748c695009 Added /random to pgf-server. 2008-11-04 09:09:22 +00:00
bjorn 3a6466ac1a Fix GWT client-side completion caching bug. Typing a space and then a letter quickly would cause the first request to be cancelled, and the second would use the two steps old results, which didn't go past the space => 0 completions. 2008-11-03 21:07:53 +00:00
bjorn bf50b5d70d Added first version of the fridge poetry gui 2008-11-03 16:43:47 +00:00
bjorn 07a0e8fe86 gf-server: complete noew sorts case-insensitive 2008-11-03 16:43:19 +00:00
bjorn ed05fc771c GWT: Refactor TranslateApp to make the suggestion panel and the settings panel separate classes. This makes it possible to reuse them in mosg and fridge. 2008-11-03 14:42:49 +00:00
bjorn 770135af5f ParseEng: more liberal IdRP 2008-11-03 13:00:35 +00:00
bjorn dfd2adad09 Added 'parse' target to Make.hs. 2008-11-03 12:29:28 +00:00
bjorn 759d648de9 ParseEng: StrandRelSlash as variant of RelSlash. 2008-11-03 12:28:40 +00:00
bjorn 88fa05749b ParseEng: ise CompleBareVS as variant of ComplVS 2008-10-31 11:04:22 +00:00
bjorn 5f59b091a0 Use BigLexEng in ParseEng. 2008-10-31 10:58:21 +00:00
bjorn 531cdf355d BigLexEng: use mkV3 instead of dirdirV3 2008-10-31 10:54:39 +00:00
bjorn ef19c479a2 BigLexEng: drop superfluous parantheses. 2008-10-31 10:51:33 +00:00
bjorn ddcd92d8fe BigLexEng: better use of mkV3, mkV2, mkN2. 2008-10-31 10:47:28 +00:00
bjorn d5b8e459ba ParadigmsEng: more versions of mkV2 and mkV3. 2008-10-31 10:43:13 +00:00
bjorn 229f2569dc BigLexEng: Get rid of the last mkV2 with empty second argument. 2008-10-31 10:34:59 +00:00
bjorn b3e4bf7a36 igLexEng: Use mkV2 : Str -> V2 instead of mkV2 (mkV "...") 2008-10-31 10:32:47 +00:00
bjorn 026086c1e9 BigLexEng: Use one-argument mkV2 instead of two-argument one with empty prep. 2008-10-31 10:28:54 +00:00
bjorn 03d687fad3 Update BigLexEng to use overloaded paradigms. 2008-10-31 10:26:17 +00:00
bjorn c14baecf51 ParadigmsEng: more overloaded version of mkA2, mkV2, mkV3, mkN2. Added mkSubj. 2008-10-31 10:19:44 +00:00
bjorn b4a433bd31 LexiconEng: Lexicon.sister_N is N, not N2 (but it probably should be). 2008-10-31 10:05:59 +00:00
bjorn f33d9e169c Added BigLexEng from mosg (originally from GF/example) to next-lib/parsing. 2008-10-31 09:26:38 +00:00
bjorn 6fcfe5d7b7 Added Pol argument to ExtraEng.Unc* to give them the same signatures as the standard (contracted) versions. This makes it easier to use Unc* as a variant without getting meta-variables when parsing, 2008-10-31 09:22:09 +00:00
bjorn 09177428d3 Started working on a parsing grammar. English-only so far. 2008-10-30 16:53:26 +00:00
bjorn e64d5a8bb0 Removed "that" variant in RelativeEng.IdRP. Added instead that_RP in ExtraEng[Abs]. 2008-10-30 15:06:34 +00:00
bjorn bed2d9068e More English morphology clean-up. 2008-10-30 14:37:54 +00:00
bjorn 9e26b4f852 Remove lots of dead code from MorphoEng. 2008-10-30 14:21:46 +00:00
bjorn a726630bb7 Added case parameter for stand-alone forms of determiners. I had to move mkPron from ResEng to MorphoEng, and mkQuant from StructuralEng to MorphoEng. I also removed the unused mkPronoun stuff from MorphoEng. 2008-10-30 14:09:27 +00:00
bjorn d4d94f6c23 Towards cleaner english morphology: use mkPrep instead of ss in StructuralEng. 2008-10-30 14:08:21 +00:00
bjorn 0486f4cd37 Removed some unused (and strange) code from MorphoEng.
Why would you want a function that always returns the noun "dog"?
2008-10-30 13:10:29 +00:00