Giter VIP home page Giter VIP logo

Comments (9)

kasra-hosseini avatar kasra-hosseini commented on July 25, 2024 2

Hi and thanks so much @YuhengHuang42 for reporting these. We will address both issues/suggestions by this Friday. (And sorry for the delay, I just got back from holiday).

from deezymatch.

kasra-hosseini avatar kasra-hosseini commented on July 25, 2024

Hi @YuhengHuang42 , thank you again for reporting the issue with n-grams and for your suggestions. It took us a bit longer than planned, but we just released v1.3.0 in which:

  • BUGFIX: the issue with n-grams (#109)
  • To generate vectors, we don't need three-column inputs anymore. We can have one column (or three columns for backward compatibility)
  • Define word token separators in the input file (#78)
  • Prefix/suffix parameter moved as part of the mode, not preprocessing, as it applied to subword tokenization
  • Add specific datasets for each DeezyMatch functionality + Edit the README file.
  • normalizeString and string_split functions are reviewed
  • Improve documentation
  • Several tests are added

from deezymatch.

kasra-hosseini avatar kasra-hosseini commented on July 25, 2024

@YuhengHuang42 Could you please take a look at the new version and let us know if there are any other issues? Thank you!

from deezymatch.

YuhengHuang42 avatar YuhengHuang42 commented on July 25, 2024

@YuhengHuang42 Could you please take a look at the new version and let us know if there are any other issues? Thank you!

Hi, thanks for following up on this issue. I have tested the code on my server, everything seems to work now. Except there are two problems:

  1. In the config file(.yaml)
gru_lstm:
  main_architecture: "gru"    # rnn, gru, lstm
  mode:    # Tokenization mode
    token_sep: "default"
    prefix_suffix: ["|", "|"]

We need to add these two lines, otherwise, there might be KeyError. But I think this is expected behavior.

  1. For one_column_inp:

It seems for now the one-column insertion is done in the DeezyMatch/data_processing.py file. This is done by:

tmp_split_row.insert(1, "tmp")

However, there might be some special cases that "t", "m", "p" are not in the vocabulary. So, in the end, there might still be some problems. But if the target NLP task is in English, I think this is also OK.

from deezymatch.

kasra-hosseini avatar kasra-hosseini commented on July 25, 2024

Hi, thanks for your quick test and for your comments.

We need to add these two lines, otherwise, there might be KeyError. But I think this is expected behavior.

there might be some special cases that "t", "m", "p" are not in the vocabulary. So, in the end, there might still be some problems. But if the target NLP task is in English, I think this is also OK.

  • Correct, and thank you for spotting this. We need to change this as we are testing DeezyMatch in non-latin-alphabet corpora. I will make a PR soon.

from deezymatch.

kasra-hosseini avatar kasra-hosseini commented on July 25, 2024

@YuhengHuang42 What do you think about this solution: #118

from deezymatch.

YuhengHuang42 avatar YuhengHuang42 commented on July 25, 2024

@YuhengHuang42 What do you think about this solution: #118

Looks good to me :)

from deezymatch.

kasra-hosseini avatar kasra-hosseini commented on July 25, 2024

👍 Great. We will do some more tests today and will merge the PR.

from deezymatch.

kasra-hosseini avatar kasra-hosseini commented on July 25, 2024

Solved in v1.3.1. I close this, but of course, please feel free to re-open or open a new issue if needed.

from deezymatch.

Related Issues (20)

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.