Git Product home page Git Product logo

ner-rnn's Introduction

This project is a prototype for experimental purposes only and production grade code is not released here.

NER-RNN

Named Entity Recognition using Recurrent Neural Networks in Tensorflow and TFLearn

Download trimmed down word embeddings (subset of google's w2v):

https://drive.google.com/file/d/0B-3ocUoGsHv7dmt6UXFkMW9EMkU/view?usp=sharing
tar -xvzf myvectors.tgz

ner-rnn's People

Contributors

dhwajraj 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ner-rnn's Issues

TypeError: unorderable types: int() >= str()

PRE_EMB size 22518
max sentence size is : 30
Traceback (most recent call last):
File "NerMulti.py", line 213, in
X_train, y_train = get_input(BASE_DIR+"/eng.train")
File "NerMulti.py", line 125, in get_input
temp = np.append(temp,capital(line.split()[0])) # adding capital embedding
File "NerMulti.py", line 52, in capital
if ord(word[0]) >= 'A' and ord(word[0]) <= 'Z':
TypeError: unorderable types: int() >= str()

I am newbie to python.
How to resolve this error???

MemoryError

Traceback (most recent call last):
File "C:/Users/weihao/Desktop/NER-RNN-master/NerMulti.py", line 213, in
X_train, y_train = get_input(BASE_DIR+"/eng.train")
File "C:/Users/weihao/Desktop/NER-RNN-master/NerMulti.py", line 145, in get_input
return np.asarray(sentence), sentence_tag
File "D:\Anaconda3\envs\tensorflow\lib\site-packages\numpy\core\numeric.py", line 531, in asarray
return array(a, dtype, copy=False, order=order)
MemoryError

how to change?

see many error like "Could not open events file"


Run id: IOM5G7
Log directory: /tmp/tflearn_logs/

Training samples: 14987
Validation samples: 3467

E tensorflow/core/util/events_writer.cc:62] Could not open events file: /tmp/tflearn_logs/IOM5G7/events.out.tfevents.1478962669.rzai00: Resource exhausted: /tmp/tflearn_logs/IOM5G7/events.out.tfevents.1478962669.rzai00h: 000 | loss: nan -- iter: 00200/14987
E tensorflow/core/util/events_writer.cc:95] Write failed because file could not be opened.
E tensorflow/core/util/events_writer.cc:62] Could not open events file: /tmp/tflearn_logs/IOM5G7/events.out.tfevents.1478962670.rzai00: Resource exhausted: /tmp/tflearn_logs/IOM5G7/events.out.tfevents.1478962670.rzai00h: 000 | loss: nan -- iter: 00400/14987
E tensorflow/core/util/events_writer.cc:95] Write failed because file could not be opened.

Tensorflow version

Can you please tell which tensorflow version have you used for your repo?
The current version as well as tensorflow==0.11.0 are giving many errors

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.