diff options
| author | krasimir <krasimir@chalmers.se> | 2008-10-15 07:47:57 +0000 |
|---|---|---|
| committer | krasimir <krasimir@chalmers.se> | 2008-10-15 07:47:57 +0000 |
| commit | 5f33e0bda955c66aa81356c6636ec65d9a40bc2e (patch) | |
| tree | 2500b5ba571901235a944a4a832532f17aeb98ca /src/PGF/Parsing/FCFG | |
| parent | 57ee52103dcccbcda75b895ea399e230e18d0a92 (diff) | |
store the total number of PMCFG categories in the PGF file
Diffstat (limited to 'src/PGF/Parsing/FCFG')
| -rw-r--r-- | src/PGF/Parsing/FCFG/Incremental.hs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/PGF/Parsing/FCFG/Incremental.hs b/src/PGF/Parsing/FCFG/Incremental.hs index c8d9d8f8d..8dc3c3da5 100644 --- a/src/PGF/Parsing/FCFG/Incremental.hs +++ b/src/PGF/Parsing/FCFG/Incremental.hs @@ -35,12 +35,8 @@ initState pinfo start = (lbl,seqid) <- assocs lins
return (Active 0 0 funid seqid args (AK cat lbl))
- max_fid = maximum (0:[maximum (cat:args) | (cat, set) <- IntMap.toList (productions pinfo)
- , p <- Set.toList set
- , let args = case p of {FApply _ args -> args; FCoerce cat -> [cat]}])+1
-
in State pinfo
- (Chart emptyAC [] emptyPC (productions pinfo) max_fid 0)
+ (Chart emptyAC [] emptyPC (productions pinfo) (totalCats pinfo) 0)
(Set.fromList items)
-- | From the current state and the next token
|
