Code Monkey home page Code Monkey logo

ner_experiments's Introduction

ner_experiments's People

Contributors

sabhyac26 avatar

Watchers

James Cloos avatar  avatar

ner_experiments's Issues

Check for 0s in non pad idxs

When fixing the masking, I saw 0s in non pad positions --> could be a bug


@todo Check for 0s in non pad idxs
@body When fixing the masking, I saw 0s in non pad positions --> could be a bug
"""
def create_mask(self, src:torch.LongTensor) -> torch.LongTensor:
mask = (src != self.pad_idx).permute(0, 1)
return mask


This issue was generated by todo based on a todo comment in b1ffb30. It's been assigned to @SabhyaC26 because they committed the code.

Add support for using pre trained word embeddinngs

Add support for senna (?), glove, word2vec


@todo Add support for using pre trained word embeddinngs
@body Add support for senna (?), glove, word2vec
"""
def forward(self, input:torch.LongTensor, input_lens:torch.LongTensor,
labels:torch.LongTensor, decode:bool) -> Dict[str, any]:
embedded = self.dropout(self.embeddings(input))


This issue was generated by todo based on a todo comment in 71e3ba1. It's been assigned to @SabhyaC26 because they committed the code.

check if dropout needs to be applied on embeddings

# @todo check if dropout needs to be applied on embeddings
embedded = self.dropout(self.embedding_layer(src))
packed_embedded = rnn.pack_padded_sequence(embedded, input_lens, batch_first=True, enforce_sorted=False)
packed_output, hidden = self.lstm(packed_embedded)
out, _ = rnn.pad_packed_sequence(packed_output, batch_first=True)


This issue was generated by todo based on a todo comment in 3667b59. It's been assigned to @SabhyaC26 because they committed the code.

will need a new collate function for this

# @todo: will need a new collate function for this
# train_dataloader = DataLoader(dataset=train_data, batch_size=args.batch_size, shuffle=True, collate_fn=pad_batch)
# val_dataloader = DataLoader(dataset=val_data, batch_size=args.batch_size, shuffle=True, collate_fn=pad_batch)
if __name__ == "__main__":
parser = argparse.ArgumentParser(description='Args for BiLSTM_CRF')


This issue was generated by todo based on a todo comment in 6e9b8be. It's been assigned to @SabhyaC26 because they committed the code.

Change weight inits?

I think the random weight inits are causing vanishing gradients - try to fix this with other weight inits

W&B

Try to add Weights and Biases to track runs and monitor progress of the project.

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.