<legend id='iUDGN'><style id='iUDGN'><dir id='iUDGN'><q id='iUDGN'></q></dir></style></legend>

      <small id='iUDGN'></small><noframes id='iUDGN'>

      <tfoot id='iUDGN'></tfoot>

        • <bdo id='iUDGN'></bdo><ul id='iUDGN'></ul>

        <i id='iUDGN'><tr id='iUDGN'><dt id='iUDGN'><q id='iUDGN'><span id='iUDGN'><b id='iUDGN'><form id='iUDGN'><ins id='iUDGN'></ins><ul id='iUDGN'></ul><sub id='iUDGN'></sub></form><legend id='iUDGN'></legend><bdo id='iUDGN'><pre id='iUDGN'><center id='iUDGN'></center></pre></bdo></b><th id='iUDGN'></th></span></q></dt></tr></i><div id='iUDGN'><tfoot id='iUDGN'></tfoot><dl id='iUDGN'><fieldset id='iUDGN'></fieldset></dl></div>
      1. 如何使用php识别文本中的名称

        How to recognize names from a text using php(如何使用php识别文本中的名称)
          <i id='BelJ6'><tr id='BelJ6'><dt id='BelJ6'><q id='BelJ6'><span id='BelJ6'><b id='BelJ6'><form id='BelJ6'><ins id='BelJ6'></ins><ul id='BelJ6'></ul><sub id='BelJ6'></sub></form><legend id='BelJ6'></legend><bdo id='BelJ6'><pre id='BelJ6'><center id='BelJ6'></center></pre></bdo></b><th id='BelJ6'></th></span></q></dt></tr></i><div id='BelJ6'><tfoot id='BelJ6'></tfoot><dl id='BelJ6'><fieldset id='BelJ6'></fieldset></dl></div>

        • <tfoot id='BelJ6'></tfoot>

            <small id='BelJ6'></small><noframes id='BelJ6'>

              <legend id='BelJ6'><style id='BelJ6'><dir id='BelJ6'><q id='BelJ6'></q></dir></style></legend>

                <tbody id='BelJ6'></tbody>
                <bdo id='BelJ6'></bdo><ul id='BelJ6'></ul>

                  本文介绍了如何使用php识别文本中的名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我想使用 php 从文本中提取姓名(名字和姓氏).例子:从下面的文本中,我想提取姓名(在本例中为 Aline Wright 和 Jesse Wright)

                  I want to extract name(firstnames and lastnames) from a text using php. Example: From text below I want to extract names(in this case Aline Wright and Jesse Wright)

                  艾琳·赖特是一名癌症幸存者,截肢者和新婚夫妇.周三晚上她开始表现出她是中风了.

                  Aline Wright is a cancer survivor, amputee and a newlywed. Wednesday night she began to show signs she was having a stroke.

                  我开始感觉到一些左臂麻木和面部下垂,"说艾琳.

                  "I started feeling some left arm numbness and a facial droop," said Aline.

                  在我看来,我可能是中风了."

                  "It appeared to me that I was probably having a stroke."

                  那是她结婚四天的丈夫,杰西·赖特,把她放在车里将她送往厄兰格医疗中心中心.赖特知道紧急情况.他是 Erlanger 的一名护士技师.

                  That's when her husband of four days, Jesse Wright, put her in the car and rushed her to the Erlanger Medical Center. Wright knows an emergency. He is a nurse technician at Erlanger.

                  推荐答案

                  如果你想做 命名实体识别 (NER) 使用 PHP,您需要调用外部 NER 包 或使用在线自然语言处理API.

                  If you want to do named entity recognition (NER) using PHP, you'll need to either call out to an external NER package or make use of an online natural language processing API.

                  API

                  下面列出了 NLP API.对于初学者来说,Complexity Intelligence 和 Alchemy API 可能比 OpenCalais 更容易使用.

                  NLP API are listed below. Complexity Intelligence and Alchemy API will probably be moderately easier to use for beginners than OpenCalais.

                  • 复杂智能 - 请参阅 PHP 命名实体标记示例代码 此处.
                  • Alchemy API - 下载他们的 PHP SDK 此处.
                  • OpenCalais - 请参阅 PHP 示例代码 此处.
                  • 无代码 API - 通过使用他们的 api 调用提供您需要处理的文本.10K 免费请求足以验证任何假设.
                  • Complexity Intelligence - see the PHP named entity tagging sample code here.
                  • Alchemy API - download their PHP SDK here.
                  • OpenCalais - see the PHP sample code here.
                  • No Code API - by using their api-calls provide text which u need to process. 10K free requests is quite enough for checking any hypothesis.

                  NER 包

                  您可以用于 NER 的一些软件包是:

                  A few software packages you can use for NER are:

                  • Stanford CoreNLP(Java)
                  • LingPipe(Java)
                  • NLTK (Python)
                  • OpenNLP(Java)
                  • YamCha (C++)
                  • Stanford CoreNLP (Java)
                  • LingPipe (Java)
                  • NLTK (Python)
                  • OpenNLP (Java)
                  • YamCha (C++)

                  其中,Stanford CoreNLP 可能是一个不错的起点.与许多 NLP API 类似,它为 NER 等常见任务提供了完整的处理管道.

                  Of these, Stanford CoreNLP is probably a good place to start. Similar to many NLP APIs, it provides a complete processing pipeline for common tasks such as NER.

                  这篇关于如何使用php识别文本中的名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                  PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                  mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                  Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                  Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                  Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)

                    <i id='G1clr'><tr id='G1clr'><dt id='G1clr'><q id='G1clr'><span id='G1clr'><b id='G1clr'><form id='G1clr'><ins id='G1clr'></ins><ul id='G1clr'></ul><sub id='G1clr'></sub></form><legend id='G1clr'></legend><bdo id='G1clr'><pre id='G1clr'><center id='G1clr'></center></pre></bdo></b><th id='G1clr'></th></span></q></dt></tr></i><div id='G1clr'><tfoot id='G1clr'></tfoot><dl id='G1clr'><fieldset id='G1clr'></fieldset></dl></div>
                  1. <legend id='G1clr'><style id='G1clr'><dir id='G1clr'><q id='G1clr'></q></dir></style></legend>

                        <tbody id='G1clr'></tbody>
                      1. <small id='G1clr'></small><noframes id='G1clr'>

                          <bdo id='G1clr'></bdo><ul id='G1clr'></ul>
                          <tfoot id='G1clr'></tfoot>