lihanghang / nlp-knowledge-graph Goto Github PK
View Code? Open in Web Editor NEW自然语言处理、知识图谱、对话系统三大技术研究与应用。
License: MIT License
自然语言处理、知识图谱、对话系统三大技术研究与应用。
License: MIT License
flake8 testing of https://github.com/lihanghang/Knowledge-Graph on Python 3.7.1
$ flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
./Algorithm-code/RelationExtraction_CNN+ATT/main_att.py:24:35: E999 TabError: inconsistent use of tabs and spaces in indentation
torch.cuda.set_device(opt.gpu_id)
^
./Algorithm-code/RelationExtraction_CNN+ATT/utils.py:19:22: E999 TabError: inconsistent use of tabs and spaces in indentation
fp_out.close()
^
./Algorithm-code/RelationExtraction_CNN+ATT/datasets/filternyt.py:87:55: F821 undefined name 'file'
wordlist.extend([word.strip('\n') for word in file(self.word_path)])
^
./Algorithm-code/RelationExtraction_CNN+ATT/datasets/filternyt.py:89:21: F821 undefined name 'file'
for line in file(self.w2v_path):
^
./Algorithm-code/RelationExtraction_CNN+ATT/datasets/filternyt.py:112:13: F821 undefined name 'file'
f = file(path)
^
./Algorithm-code/RelationExtraction_CNN+ATT/models/PCNN_ATT.py:96:34: E999 TabError: inconsistent use of tabs and spaces in indentation
def init_int_constant(self, num):
^
./Algorithm-code/Text-Similarity/train.py:54:34: E999 SyntaxError: invalid syntax
print '训练开始......................'
^
4 E999 TabError: inconsistent use of tabs and spaces in indentation
3 F821 undefined name 'file'
7
E901,E999,F821,F822,F823 are the "showstopper" flake8 issues that can halt the runtime with a SyntaxError, NameError, etc. These 5 are different from most other flake8 issues which are merely "style violations" -- useful for readability but they do not effect runtime safety.
name
name
in __all__
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.