[ngrams] try without map list size to fix singulars/plurals issue

parent 956df688
...@@ -164,7 +164,7 @@ buildNgramsTermsList :: ( HasNodeError err ...@@ -164,7 +164,7 @@ buildNgramsTermsList :: ( HasNodeError err
-> GroupParams -> GroupParams
-> (NgramsType, MapListSize) -> (NgramsType, MapListSize)
-> m (Map NgramsType [NgramsElement]) -> m (Map NgramsType [NgramsElement])
buildNgramsTermsList user uCid mCid mfslw groupParams (nt, MapListSize mapListSize) = do buildNgramsTermsList user uCid mCid mfslw groupParams (nt, MapListSize _mapListSize) = do
-- Filter 0 With Double -- Filter 0 With Double
-- Computing global speGen score -- Computing global speGen score
...@@ -184,10 +184,11 @@ buildNgramsTermsList user uCid mCid mfslw groupParams (nt, MapListSize mapListSi ...@@ -184,10 +184,11 @@ buildNgramsTermsList user uCid mCid mfslw groupParams (nt, MapListSize mapListSi
) )
-- printDebug "[buildNgramsTermsList: Flow Social List / end]" nt -- printDebug "[buildNgramsTermsList: Flow Social List / end]" nt
let !ngramsKeys = HashSet.fromList -- let !ngramsKeys = HashSet.fromList
$ List.take mapListSize -- $ List.take mapListSize
$ HashSet.toList -- $ HashSet.toList
$ HashMap.keysSet allTerms -- $ HashMap.keysSet allTerms
let !ngramsKeys = HashMap.keysSet allTerms
-- printDebug "[buildNgramsTermsList: ngramsKeys]" (HashSet.size ngramsKeys) -- printDebug "[buildNgramsTermsList: ngramsKeys]" (HashSet.size ngramsKeys)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment