da-capo / entity-relation-svm Goto Github PK
View Code? Open in Web Editor NEWSVM Entity Relation classification for ace2005 chinese data
SVM Entity Relation classification for ace2005 chinese data
请问在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
谢谢
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重名了吗
可以发我邮箱:[email protected]
最近在做关系抽取方面的工作,想用SVM做个baseline ,有幸看到您的工程,请问下 能够将数据集发我一份那?非常感谢您的开源。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.