textacy

How to initialize a `Doc` in textacy 0.6.2?

瘦欲@ 提交于 2019-12-10 17:42:03
问题 Trying to follow the simple Doc initialization in the docs in Python 2 doesn't work: >>> import textacy >>> content = ''' ... The apparent symmetry between the quark and lepton families of ... the Standard Model (SM) are, at the very least, suggestive of ... a more fundamental relationship between them. In some Beyond the ... Standard Model theories, such interactions are mediated by ... leptoquarks (LQs): hypothetical color-triplet bosons with both ... lepton and baryon number and fractional