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

        使用 PHP 进行文本挖掘

        Text mining with PHP(使用 PHP 进行文本挖掘)

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

            1. <tfoot id='QYAHR'></tfoot>

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

                <tbody id='QYAHR'></tbody>
                • <bdo id='QYAHR'></bdo><ul id='QYAHR'></ul>
                  本文介绍了使用 PHP 进行文本挖掘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在为我正在上的大学课程做一个项目.

                  I'm doing a project for a college class I'm taking.

                  我正在使用 PHP 构建一个简单的网络应用程序,该应用程序根据一组字典将推文分为积极"(或快乐)和消极"(或悲伤).我现在想到的算法是朴素贝叶斯分类器或决策树.

                  I'm using PHP to build a simple web app that classify tweets as "positive" (or happy) and "negative" (or sad) based on a set of dictionaries. The algorithm I'm thinking of right now is Naive Bayes classifier or decision tree.

                  但是,我找不到任何 PHP 库可以帮助我进行一些严肃的语言处理.Python 有 NLTK(http://www.nltk.org).PHP 有没有类似的东西?

                  However, I can't find any PHP library that helps me do some serious language processing. Python has NLTK (http://www.nltk.org). Is there anything like that for PHP?

                  我打算使用 WEKA 作为 Web 应用程序的后端(通过在 PHP 中的命令行调用 Weka),但似乎效率不高.

                  I'm planning to use WEKA as the back end of the web app (by calling Weka in command line from within PHP), but it doesn't seem that efficient.

                  你知道我应该在这个项目中使用什么吗?还是我应该切换到 Python?

                  Do you have any idea what I should use for this project? Or should I just switch to Python?

                  谢谢

                  推荐答案

                  如果您打算使用朴素贝叶斯分类器,您实际上并不需要大量的 NL 处理.您只需要一种算法来阻止推文中的单词,如果需要,还可以删除停用词.

                  If you're going to be using a Naive Bayes classifier, you don't really need a whole ton of NL processing. All you'll need is an algorithm to stem the words in the tweets and if you want, remove stop words.

                  词干算法比比皆是,并且不难编码.删除停用词只是搜索哈希映射或类似内容的问题.我认为没有理由切换您的开发平台以适应 NLTK,尽管它是一个非常好的工具.

                  Stemming algorithms abound and aren't difficult to code. Removing stop words is just a matter of searching a hash map or something similar. I don't see a justification to switch your development platform to accomodate the NLTK, although it is a very nice tool.

                  这篇关于使用 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 的问题)

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

                    <tfoot id='dF75q'></tfoot>
                      <tbody id='dF75q'></tbody>
                    <i id='dF75q'><tr id='dF75q'><dt id='dF75q'><q id='dF75q'><span id='dF75q'><b id='dF75q'><form id='dF75q'><ins id='dF75q'></ins><ul id='dF75q'></ul><sub id='dF75q'></sub></form><legend id='dF75q'></legend><bdo id='dF75q'><pre id='dF75q'><center id='dF75q'></center></pre></bdo></b><th id='dF75q'></th></span></q></dt></tr></i><div id='dF75q'><tfoot id='dF75q'></tfoot><dl id='dF75q'><fieldset id='dF75q'></fieldset></dl></div>
                        <bdo id='dF75q'></bdo><ul id='dF75q'></ul>

                          • <legend id='dF75q'><style id='dF75q'><dir id='dF75q'><q id='dF75q'></q></dir></style></legend>