我有很多像这样的弦。Python中是否有可以提取姓名、日记、日期、标题等的库?你知道吗
Wallace, Kelly. "Bush Stands Pat on Stem Cell Policy." CNN. 13 Aug. 2001.
我试着使用pybtex,但没有返回任何字符串,它必须在特定的格式。你知道吗
from pybtex.database import parse_file,parse_string
print(parse_string('Wallace, Kelly. "Bush Stands Pat on Stem Cell Policy." CNN. 13 Aug. 2001.','bibtex'))
# it returns nothing
BibliographyData(entries=OrderedCaseInsensitiveDict([]), preamble=[])
你似乎在寻找一个NLP解决方案。查看NLTK:https://www.nltk.org/
如果没有任何固定的格式,NLP就是一条出路。你知道吗
相关问题 更多 >
编程相关推荐