Skip to content

Docker image #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Jun 23, 2019
Merged

Docker image #3

merged 12 commits into from
Jun 23, 2019

Conversation

p16i
Copy link
Contributor

@p16i p16i commented May 7, 2019

This PR aims to make PyThaiNLP Web Demo runnable out of the box using Docker. Our plan is to provide a easy-to-use interface to test those algorithms implemented in PyThaiNLP (see also #2).

Detailed Plan

It seems main.py is outdated. Many PyThaiNLP's interfaces have been change. Thus, we need to update the script accordingly.
Here are tasks that I plan to do

  • Fix & verify the tokenisation page and its API
  • Fix & verify the POS page and its API
  • Fix & verify the NER page and its API
  • Include PyThaiNLP's version in /about. This is mainly for debuting proposes.
  • Improve UX for those pages as well as API We can do it later.
  • Provide Postman bundle for API usage No concrete use case.

@wannaphongcom please let me know if you have any comments or suggestions.

@wannaphong wannaphong self-requested a review May 8, 2019 08:22
@wannaphong wannaphong added the enhancement New feature or request label May 8, 2019
@p16i
Copy link
Contributor Author

p16i commented May 8, 2019

I have another idea. Maybe we can have 2 applications: one for API and the other one for the web interface. These two applications are different Docker images. Doing this way will allow us to optimise the API Docker for being used in production environment.

@p16i
Copy link
Contributor Author

p16i commented May 27, 2019

@wannaphongcom could you please review the dev image and let me know what needs to be done before we can merge this PR?

From what I can see, Soundex page is the only one left that needs modification.

Copy link
Member

@wannaphong wannaphong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

น่าจะโอเคไม่มีปัญหาอะไรครับ

@p16i
Copy link
Contributor Author

p16i commented Jun 18, 2019

To test:

Just in case something might go wrong, please try to run the command below before merging.

docker run -i -p 8080:80 pythainlp/demo

@p16i p16i changed the title [WIP] Docker image Docker image Jun 18, 2019
@wannaphong wannaphong merged commit b116c13 into PyThaiNLP:master Jun 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants