<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识别文本中的名称

        时间:2023-08-20
          <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识别文本中的名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:使用 PHP 进行文本挖掘 下一篇:拆分包含字母和数字的字符串,在 PHP 中不被任何特定的分隔符分隔

                  相关文章

                    <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>

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

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