home | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Java example source code file (search.ftl)

This example Java source code file (search.ftl) is included in the alvinalexander.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Learn more about this Java project at its project page.

Java - Java tags/keywords

anything, classify, doctype, enter, first, frequency, number, results, search, searcher, second, submit, what, word

The search.ftl Java example source code

<!DOCTYPE html>

<html lang="en">
<head>
    <meta charset="utf-8">

    <title>Word2Vec Searcher
    <!-- jQuery -->
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
    <script src="assets/views.js">
    <script src="assets/jquery.rest.min.js">

    <script>
</head>

<body>
<div>
    <h1>Note that in any and all cases, you can only use words that occur in the vocab. Anything else would require more data.
</div>


<div>
    <h5>Number of words in vocab.
   <div>
</div> <div> <h5>Word Frequency - Enter a word and hit submit, and get the count of the word in the vocab. <form id ="word_frequency"> <fieldset> <label for="word">Word </fieldset> <button id="word_freq_button" value="submit">Submit <div id="word_freq_display" /> </form> </div> f <div> <h5>Similarity (distance between 2 word vectors) <form id="similarity"> <fieldset> <label for="w1">Word 1 <label for="w2">Word 1 </fieldset> <button id="sim_submit" value="submit">Submit <h5>Similarity outut <div id="simdisplay" /> </form> </div> <div> <h5>Clustering: What topic the words belongs to <form id="cluster"> <fieldset> <label for="word">Classify </fieldset> <button id="classify_submit" value="submit">Submit </form> <h5>Cluster the word belongs to display <div id="cluster_display" /> </div> <div> <h5>Words nearest <form id="nearest"> <fieldset> <label for="word">Word <label for="nearest_num">Number </fieldset> <button id="nearest_submit" value="submit">Submit </form> <h5>Cluster the word belongs to display <div id="nearest_display" /> </div> <div> <h5>Search <form id="search"> <fieldset> <label for="search_query">Search Query <label for="num_results">Number of results </fieldset> <button id="search_submit" value="submit">Submit </form> <h5>Search Results <div id="search_display" /> </div> </body> </html>

Other Java examples (source code examples)

Here is a short list of links related to this Java search.ftl source code file:



my book on functional programming

 

new blog posts

 

Copyright 1998-2019 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.