解析或提取数据以输入数据库
我有以下文本文件:
VERDICT:
MR. FOREMAN: Guilty.
THE COURT: Accused and, you have been found guilty on the charges as you have heard the Foreman for the jury say. You are remanded. I have requested a probation report and you are remanded until sentencing, until the Court receives the probation report.
THE COURT: Mr. Foreman and members of the jury, on behalf of the administration of justice
THE CLERK: Joh Doe the jury have found you guilty. Have you anything to say before Her Ladyship, the Judge, proceeds to sentence you?
SENTENCE:
THE COURT: John Doe.
我想使用诸如判决、工头、法庭、书记员、句子等关键字作为标签来将此信息输入数据库。请告诉我如何提取这些单词来创建标签以形成 xml 文档并将其放入数据库中。我一直在使用正则表达式和数据提取进行搜索,但尚未找到任何内容。
I have the following text file:
VERDICT:
MR. FOREMAN: Guilty.
THE COURT: Accused and, you have been found guilty on the charges as you have heard the Foreman for the jury say. You are remanded. I have requested a probation report and you are remanded until sentencing, until the Court receives the probation report.
THE COURT: Mr. Foreman and members of the jury, on behalf of the administration of justice
THE CLERK: Joh Doe the jury have found you guilty. Have you anything to say before Her Ladyship, the Judge, proceeds to sentence you?
SENTENCE:
THE COURT: John Doe.
I would like to use the keywords such as verdict, foreman, court, clerk, sentence as tags to enter this information in a database. Please tell me how I can extract these words to create tags to form an xml document to place it in a database. i have been searching using regex and data extraction but I have not found anything as yet.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您有预期标签的列表吗?
Do you have a list of expected tags?