首页 > 解决方案 > 使用 Python + NLTK 提取文本块

问题描述

我正在寻找一种通过使用 Python 和 NLTK 识别模式来提取文本块的方法。

我有下面的文字,需要提取问题的相应文字和每个备选方案。

QUESTION 01
For a p-type semiconductor, which of the following statements is true?
A Holes are the majority carriers and pentavalent atoms are the dopants.
B Electrons are the majority carriers and pentavalents atms are the dopants.
C Electrons are the majority carriers and trivalent atoms are the dopants.

最好的方法是对“问题”实体使用一种模式,对“替代”实体使用其他模式?

标签: pythonnlpartificial-intelligencenltktext-extraction

解决方案


推荐阅读