'use strict'; const PaperLite = props => { const p = props.paper; return (
{p.title}
{p.authors}
{p.time}
{p.tags}
{p.summary}
) } const Word = props => { const p = props.word; // word, weight, idf return (
{p.weight.toFixed(2)}
{/*
{p.idf.toFixed(2)}
*/}
{p.word}
) } const WordList = props => { const lst = props.words; const wlst = lst.map((jword, ix) => ); return (
The following are the tokens and their (tfidf) weight in the paper vector. This is the actual summary that feeds into the SVM to power recommendations, so hopefully it is good and representative!
{wlst}
) } ReactDOM.render(, document.getElementById('wrap')) ReactDOM.render(, document.getElementById('wordwrap'))