Giter VIP home page Giter VIP logo

Comments (5)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 20, 2024
解决了,因为我loadfromfile但又没有对应文件,没有对应的文��
�时用false

Original comment by [email protected] on 13 Apr 2012 at 12:56

from python-data-mining-platform.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 20, 2024
我是新手。同样出现了no such file or directory
看了帖子之后,灵感突现。明白了错在哪里。
我的程序运行目录和所操作的文件目录不是同一个目录。只��
�把open()函数的filename前加上所操作文件所在目录就OK了。

Original comment by [email protected] on 9 Jul 2012 at 3:49

from python-data-mining-platform.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 20, 2024
Traceback (most recent call last):
  File "naive_bayes_test.py", line 11, in <module>
    PyMining.Init(config, "__global__", True)
  File "/home/zhuajiayong/code_myself/search_engine/trunk/py_mining.py", line 38, in Init
    PyMining.__ReadDict(PyMining.termToId, PyMining.nameTermToId, "str", "int")
  File "/home/zhuajiayong/code_myself/search_engine/trunk/py_mining.py", line 60, in __ReadDict
    f = open(currentdir + filename, "r")
IOError: [Errno 2] No such file or directory: 
u'~/code_myself/search_engine/trunk/mining/mining/term_to_id'


我加了目录好像还是不行, 我的loadfromfile是false

Original comment by [email protected] on 10 Dec 2012 at 9:15

from python-data-mining-platform.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 20, 2024
我的怎么加载了,也不能运行啊,,,

>>> 
config=Configuration.FromFile("D:\python\py_mining_0_2_D\example\conf\test.xml")

Traceback (most recent call last):
  File "<pyshell#10>", line 1, in <module>
    config=Configuration.FromFile("D:\python\py_mining_0_2_D\example\conf\test.xml")
  File "D:\python\py_mining_0_2_D\pymining\common\configuration.py", line 34, in FromFile
    return Configuration(minidom.parse(path).childNodes[0])
  File "C:\Python27\lib\xml\dom\minidom.py", line 1914, in parse
    return expatbuilder.parse(file)
  File "C:\Python27\lib\xml\dom\expatbuilder.py", line 922, in parse
    fp = open(file, 'rb')
IOError: [Errno 22] invalid mode ('rb') or filename: 
'D:\\python\\py_mining_0_2_D\\example\\conf\test.xml'

Original comment by [email protected] on 4 May 2013 at 7:16

from python-data-mining-platform.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 20, 2024
不错,怎么不更新了

Original comment by [email protected] on 8 Nov 2014 at 5:51

from python-data-mining-platform.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.