Skip to content

Commit

Permalink
add check for language
Browse files Browse the repository at this point in the history
add check for language
  • Loading branch information
goru001 authored Dec 13, 2019
2 parents befcf78 + 89eb1e3 commit 261eea2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions inltk/inltk.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ def get_sentence_similarity(sen1: str, sen2: str, language_code: str, cmp: Calla


def get_similar_sentences(sen: str, no_of_variations: int, language_code: str):
check_input_language(language_code)
# get embedding vectors for sen
tok = LanguageTokenizer(language_code)
token_ids = tok.numericalize(sen)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="inltk",
version="0.7",
version="0.7.1",
author="Gaurav",
author_email="contactgauravforwork@gmail.com",
description="Natural Language Toolkit for Indian Languages (iNLTK)",
Expand Down

0 comments on commit 261eea2

Please sign in to comment.