我试图从一些参考资料中得到不同类型的句子
这是参考资料
Goldberg, Yoav (2016). "A Primer on Neural Network Models for Natural Language Processing". Journal of Artificial Intelligence Research. 57: 345–420. arXiv:1807.10854.
Goodfellow, Ian; Bengio, Yoshua; Courville, Aaron (2016). Deep Learning. MIT Press.
Choe, Do Kook; Charniak, Eugene. "Parsing as Language Modeling". EMNLP 2016.
Vinyals, Oriol; et al. "Grammar as a Foreign Language" (PDF). NIPS2015.
Winograd, Terry (1971). Procedures as a Representation for Data in a Computer Program for Understanding Natural Language (Thesis).
Schank, Roger C.; Abelson, Robert P. (1977). Scripts, Plans, Goals, and Understanding: An Inquiry Into Human Knowledge Structures. Hillsdale: Erlbaum. ISBN 0-470-99033-3.
Mark Johnson. How the statistical revolution changes (computational) linguistics. Proceedings of the EACL 2009 Workshop on the Interaction between Linguistics and Computational Linguistics.
Philip Resnik. Four revolutions. Language Log, February 5, 2011.
Kishorjit, N.; Vidya, Raj RK.; Nirmal, Y.; Sivaji, B. (2012). "Manipuri Morpheme Identification" (PDF). Proceedings of the 3rd Workshop on South and Southeast Asian Natural Language Processing (SANLP). COLING 2012, Mumbai, December 2012: 95–108.
Mittal (2011). "Versatile question answering systems: seeing in synthesis". IJIIDS. 5 (2): 119–142. doi:10.1504/IJIIDS.2011.038968.
PASCAL Recognizing Textual Entailment Challenge (RTE-7) https://tac.nist.gov//2011/RTE/
Yi, Chucai; Tian, Yingli (2012), "Assistive Text Reading from Complex Background for Blind Persons", Camera-Based Document Analysis and Recognition, Springer Berlin Heidelberg, pp. 15–28, CiteSeerX 10.1.1.668.869, doi:10.1007/978-3-642-29364-1_2, ISBN 9783642293634正如你所看到的,每个句子都是不同的,每次我试图从引用中得到一个特定的句子时,并不是所有的句子都是正确的
这是我尝试过的([.]((?<=.)(.*)\.?))表达式之一,这是结果

结果是不同的,并不是所有的结果都是正确的。既然我刚进入正则表达式,我仍然不知道该使用什么表达式,请帮助我。
发布于 2020-02-23 08:04:58
看起来,你想要匹配的所有句子都紧接在下面:
句点后面跟着空格(与(?<=\B, ))匹配),或
,,在单词字符后面不对,后面跟着空格(与(?<=\. )匹配)而且,所有匹配都以大写字母开头,可能以" (与"?[A-Z]匹配)开头。
把所有这些条件结合起来,你就会得到:
(?:(?<=\. )|(?<=\B, ))"?[A-Z].+https://stackoverflow.com/questions/60360193
复制相似问题