官术网_书友最值得收藏!

Semantics and topic modeling

Gensim is famous for its powerful semantic and topic modeling algorithms. Topic modeling is a typical text mining task of discovering the hidden semantic structures in a document. Semantic structure in plain English is the distribution of word occurrences. It is obviously an unsupervised learning task. What we need to do is to feed in plain text and let the model figure out the abstract "topics". We will study topic modeling in detail in Chapter 3, Mining the 20 Newsgroups Dataset with Clustering and Topic Modeling Algorithms.

In addition to robust semantic modeling methods, gensim also provides the following functionalities:

  • Word embedding: Also known as word vectorization, this is an innovative way to represent words while preserving words' co-occurrence features. We will study word embedding in detail in Chapter 10, Machine Learning Best Practices.
  • Similarity querying: This functionality retrieves objects that are similar to the given query object. It's a feature built on top of word embedding.
  • Distributed computingThis functionality makes it possible to efficiently learn from millions of documents.

Last but not least, as mentioned in the first chapter, scikit-learn is the main package we use throughout this entire book. Luckily, it provides all text processing features we need, such as tokenization, besides comprehensive machine learning functionalities. Plus, it comes with a built-in loader for the 20 newsgroups dataset.

Now that the tools are available and properly installed, what about the data?

主站蜘蛛池模板: 临澧县| 沾益县| 九江市| 萝北县| 商丘市| 承德县| 桐庐县| 青海省| 永和县| 阜平县| 太原市| 宣威市| 石棉县| 青海省| 淮北市| 南投市| 新河县| 扬州市| 五台县| 保山市| 太保市| 河池市| 肇庆市| 西城区| 交口县| 榆林市| 荔波县| 临桂县| 镇宁| 津市市| 中卫市| 兴和县| 安阳市| 华宁县| 略阳县| 勐海县| 隆子县| 桃源县| 定陶县| 屏南县| 芦溪县|