Skip to content

Commit

Permalink
More stop words
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed Sep 13, 2023
1 parent 8373998 commit dec08f0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/models/project.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,11 @@ def self.stop_words
'nutrition','azure','modeling', 'tuning','iobroker','benchmark','kubernetes','k8s', 'helm', 'github-action', 'github-actions', 'svg','cnc','spark', 'scala', 'pyspark','microsoft', 'http','apache-spark',
'hacktoberfest2020','neural-network','farm','python-library','uk','openstreetmap','robotics','mechanical-engineering','lidar','sdk','cli','gpu','ml','landsat','food','automation','gtfs','ggplot2', 'github',
'kotlin', 'sentinel','visualization','maps','mapping','dask','pipeline','api-client','transit','home-assistant','education','api-wrapper','course','mapbox','engineering','atmosphere','scenario','optimization',
'data-analysis','data-visualization','backend','model','modelling','nextjs','pyam']
'data-analysis','data-visualization','backend','model','modelling','nextjs','pyam','australia','object-detection','monte-carlo-simulation','time-series-analysis','cnn','forecasting','forecast']
end

def self.potential_good_topics
Project.unreviewed.where('vote_score > 0').pluck(:keywords).flatten.group_by(&:itself).transform_values(&:count).sort_by{|k,v| v}.reverse.select{|k,v| v > 1}.map(&:first) - stop_words
end

def self.potential_stop_words
Expand Down

0 comments on commit dec08f0

Please sign in to comment.