项目作者: noahgift

项目描述 :
UGC AI: recommendations and sentiment analysis examples using Cloud APIs and more
高级语言: Jupyter Notebook
项目地址: git://github.com/noahgift/recommendations.git
创建时间: 2018-02-11T17:08:10Z
项目社区:https://github.com/noahgift/recommendations

开源协议:

下载


AI on User Generated Content

This projects has explorations of handling UGC: Recommendation Engines, NLP, and more. This material is covered in Chapter 11 of Pragmatic AI

Jupyter Notebooks for UGC (User Generated Content)

Recommendations

Explorations of recommendation engines

How to use:

  1. In [1]: follows import *
  2. In [2]: df = follows_dataframe()
  3. In [3]: dfr = follow_relations_df(df)
  4. In [4]: dfr.head()
  5. In [5]: scores = generate_similarity_scores(dfr, "00480160-0e6a-11e6-b5a1-06f8ea4c790f")
  6. In [5]: scores
  7. Out[5]:
  8. 2144 0.000000
  9. 713 0.000000
  10. 714 0.000000
  11. 715 0.000000
  12. 716 0.000000
  13. 717 0.000000
  14. 712 0.000000
  15. 980 0.333333
  16. 2057 0.333333
  17. 3 1.000000
  18. Name: follow_relations, dtype: float64
  19. In [6]: dfs = return_similarity_scores_with_ids(dfr, scores)
  20. In [6]: dfs
  21. Out[6]:
  22. followerId \
  23. 980 76cce300-0e6a-11e6-83e2-0242528e2f1b
  24. 2057 f5ccbf50-0e69-11e6-b5a1-06f8ea4c790f
  25. 3 00480160-0e6a-11e6-b5a1-06f8ea4c790f
  26. follow_relations scores \
  27. 980 [f5ccbf50-0e69-11e6-b5a1-06f8ea4c790f, 0048016... 0.333333
  28. 2057 [76cce300-0e6a-11e6-83e2-0242528e2f1b, 0048016... 0.333333
  29. 3 [f5ccbf50-0e69-11e6-b5a1-06f8ea4c790f, 76cce30... 1
  30. following_count
  31. 980 2
  32. 2057 2
  33. 3 2

Cloud NLP

Explorations of Cloud NLP APIS on Google, Azure and AWS

Kernel Density Plot of NLP Azure Call