Code Monkey home page Code Monkey logo

Comments (3)

rahil1304 avatar rahil1304 commented on May 27, 2024

Hi, I had a small question. If I wanted to test this model for a single sentence, which script would I need to run? Because the repository has only a train.py file, so every time I run that it begins training from scratch. Is there a particular script that I could run to test the model on a single sentence?
I know your time is extremely valuable, so don't feel the need to respond in depth. However, if you do have 5 minutes, I would really appreciate it. @AlexYangLi

from absa_keras.

prasys avatar prasys commented on May 27, 2024

Hi, I had a small question. If I wanted to test this model for a single sentence, which script would I need to run? Because the repository has only a train.py file, so every time I run that it begins training from scratch. Is there a particular script that I could run to test the model on a single sentence?
I know your time is extremely valuable, so don't feel the need to respond in depth. However, if you do have 5 minutes, I would really appreciate it. @AlexYangLi

Basically , you would need to write a script that loads the model , does the preprocessing (according to the model) to do the prediction. I am in the midsts of doing a single prediction method for it. It will be in my fork once I've done the work (I'm working on other things)

from absa_keras.

prasys avatar prasys commented on May 27, 2024

@rahil1304 - You can check out my fork of this repo - there is a predict.py. It does prediction at sentence level (right now) - but you can do it at each individual word level

Basically you put in your single sentence as csv , it will generate the embeddings , then it loads the model and it would do a test against it. It's super dirty and quick hack. I'll make it bit more better

from absa_keras.

Related Issues (9)

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.