patwu/nlp-models
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
# nlp-models ## Requirement LearningMines requires the following dependencies: * python 2.7 * tensorflow 1.0 * grpc 1.3 Install grpc and grpc.tools ```bash sudo python -m pip install grpcio sudo python -m pip install grpcio-tools ``` ## Char-Based Translate Model: ```bash # Build Char-vocabulary: # Corpus_file is serveral lines of src dest sentence, separated by tab python translate_utils.py --corpus_file [corpus_file] --vocabulary_file [vocabulary_file] --column [column] # Training Model: python translate_trainner.py --filename [corpus_file] --src_vocabulary [src_vocabulary] --dest_vocabulary [dest_vocabulary] --type simple --model_path [model_path_to_save] --batch_size [batch_size] # Start Model Server python translate_server.py --type simple --model_path [model_path] --src_vocabulary [src_vocabulary] --dest_vocabulary [dest_vocabulary] --port [service_port] # Test Model python translate_tester.py --test_file [test_file] ```
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published