GithubHelp home page GithubHelp logo

practicingman / chinese_ulmfit Goto Github PK

View Code? Open in Web Editor NEW
252.0 9.0 39.0 2.94 MB

中文ULMFiT 情感分析 文本分类

Python 100.00%
ulmfit nlp text-classification sentiment-analysis transfer-learning fastai

chinese_ulmfit's People

Contributors

practicingman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chinese_ulmfit's Issues

ValueError: numpy.ufunc has the wrong size, try recompiling. Expected 192, got 216 on fastai==0.7.0

(.venv) ub16c9@ub16c9-gpu:/ub16_prj/chinese_ulmfit$ python3.6 pretraining.py --input_file=tmp/wiki2018-11-14.ids.npy --mapping_file=tmp/wiki2018-11-14.mapping.pkl --dir_path=tmp
Traceback (most recent call last):
File "pretraining.py", line 2, in
from fastai.text import *
File "/home/ub16c9/ub16_prj/chinese_ulmfit/.venv/lib/python3.6/site-packages/fastai/text.py", line 1, in
from .core import *
File "/home/ub16c9/ub16_prj/chinese_ulmfit/.venv/lib/python3.6/site-packages/fastai/core.py", line 1, in
from .imports import *
File "/home/ub16c9/ub16_prj/chinese_ulmfit/.venv/lib/python3.6/site-packages/fastai/imports.py", line 2, in
import PIL, os, numpy as np, math, collections, threading, json, bcolz, random, scipy, cv2
File "/home/ub16c9/ub16_prj/chinese_ulmfit/.venv/lib/python3.6/site-packages/bcolz/init.py", line 76, in
from bcolz.carray_ext import (
File "init.pxd", line 885, in init bcolz.carray_ext
ValueError: numpy.ufunc has the wrong size, try recompiling. Expected 192, got 216
(.venv) ub16c9@ub16c9-gpu:
/ub16_prj/chinese_ulmfit$

微调一步出现错误,本人处理不了。。。

微调一步报错:
File "finetuning.py", line 4, in
from fastai.lm_rnn import *
ModuleNotFoundError: No module named 'fastai.lm_rnn'
有什么解决办法吗?

In finetuning, I met the above error, can someone help me?

No module named 'fastai.learner'

ub16c9@ub16c9-gpu:/ub16_prj/chinese_ulmfit$ python3.6 pretraining.py --input_file=tmp/wiki2018-11-14.ids.npy --mapping_file=tmp/wiki2018-11-14.mapping.pkl --dir_path=tmp
Traceback (most recent call last):
File "pretraining.py", line 3, in
from helper import *
File "/home/ub16c9/ub16_prj/chinese_ulmfit/helper.py", line 1, in
from fastai.learner import *
ModuleNotFoundError: No module named 'fastai.learner'
ub16c9@ub16c9-gpu:
/ub16_prj/chinese_ulmfit$

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.