GithubHelp home page GithubHelp logo

lihanghang / nlp-knowledge-graph Goto Github PK

View Code? Open in Web Editor NEW
1.6K 60.0 361.0 529.8 MB

自然语言处理、知识图谱、对话系统三大技术研究与应用。

License: MIT License

nlp ner kbqa event-driven deep-learning machine-learning knowledge-graph bert ernie transformers

nlp-knowledge-graph's People

Contributors

cclauss avatar lhhroots avatar lihanghang 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  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

nlp-knowledge-graph's Issues

Python 3 incompatibilities

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.

  • F821: undefined name name
  • F822: undefined name name in __all__
  • F823: local variable name referenced before assignment
  • E901: SyntaxError or IndentationError
  • E999: SyntaxError -- failed to compile a file into an Abstract Syntax Tree

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.