Giter Site home page Giter Site logo

entity-relation-svm's People

Contributors

da-capo avatar

Stargazers

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

Watchers

 avatar

entity-relation-svm's Issues

您好!

最近在做关系抽取方面的工作,想用SVM做个baseline ,有幸看到您的工程,请问下 能够将数据集发我一份那?非常感谢您的开源。

import jieba报错

python feature_extract.py
Traceback (most recent call last):
File "feature_extract.py", line 9, in
import jieba
File "/home/xfbai/anaconda3/lib/python3.6/site-packages/jieba/init.py", line 9, in
import logging
File "/home/xfbai/anaconda3/lib/python3.6/logging/init.py", line 26, in
import sys, os, time, io, traceback, warnings, weakref, collections
File "/home/xfbai/anaconda3/lib/python3.6/traceback.py", line 5, in
import linecache
File "/home/xfbai/anaconda3/lib/python3.6/linecache.py", line 11, in
import tokenize
File "/home/xfbai/anaconda3/lib/python3.6/tokenize.py", line 35, in
from token import *
File "/home/xfbai/Entity-Relation-SVM-master/token.py", line 17, in
from sklearn.feature_extraction.text import CountVectorizer,TfidfTransformer
File "/home/xfbai/anaconda3/lib/python3.6/site-packages/sklearn/init.py", line 22, in
logger = logging.getLogger(name)
AttributeError: module 'logging' has no attribute 'getLogger'
请问这个错是因为token.py重名了吗

执行token.py出错

请问在token.py中执行创建词袋的步骤时,报如下的错是为什么呢?stackoverflow上的方法都行不通
Traceback (most recent call last):
File "feature_extract.py", line 51, in
tokens = token.get_tokens()
File "/home/xfbai/Entity-Relation-SVM-master/new_token.py", line 65, in get_tokens
X_train_counts = vectorizer.fit_transform(cut_docs)
File "/home/xfbai/anaconda3/lib/python3.6/site-packages/sklearn/feature_extraction/text.py", line 1031, in fit_transform
self.fixed_vocabulary_)
File "/home/xfbai/anaconda3/lib/python3.6/site-packages/sklearn/feature_extraction/text.py", line 962, in _count_vocab
raise ValueError("empty vocabulary; perhaps the documents only"
ValueError: empty vocabulary; perhaps the documents only contain stop words

谢谢

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.