-
Notifications
You must be signed in to change notification settings - Fork 223
N-gram character models #107
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Only minor changes needed
@@ -5,18 +5,34 @@ | |||
<link rel="stylesheet" href="../styles.css"> | |||
<script src="http://code.jquery.com/jquery-1.12.4.js"></script> | |||
<script type="text/javascript" src="../main.js"></script> | |||
<script type="text/javascript" src="../22-Natural-Language-Processing/nGramModels.js"></script> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be simpler as src="nGramModels.js"
<button type="submit" class="submit btn btn-success">Submit</button> | ||
</div> | ||
</form> | ||
<span><h5>Character Level Unigrams :-</h5></span><div id="character-level-unigram"></div><br> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A span
is an “inline element” and an h5
is a “block element”. Normally a block element can contain inline elements, but inline elements should not contain block elements. I think you can remove the span
here
Bug: try entering some text, click submit, then click submit again. It duplicates the text. |
@redblobgames i think now its all working correctly. |
Great! |
This is with reference to #103 .