You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calculating POS stats seems to slow things down significantly. TODO:
Profile the package, what causes the slowdown?
Calculate the sum of values once and then call in the dict comprehension in PosStatistics
Ideas for speedup:
Identify which pos_tags the model can make and predefine the counter/dictionary with those keys (would also solve the issue of different numbers of keys across docs/sentences)
Alternatives to Counter?
Other options:
Remove posstats from default TextDescriptives and make it an optional component that takes in which specific POS tags the user is interested in and extracts those (+ 'others')
The text was updated successfully, but these errors were encountered:
Profiling has fairly high priority - if pos-stats really slows things down as much as i fear, then it should be removed from the default TextDescriptives pipe pretty soon. Optimizing it is not a huge priority atm
Calculating POS stats seems to slow things down significantly. TODO:
PosStatistics
Ideas for speedup:
Counter
?Other options:
The text was updated successfully, but these errors were encountered: