<commit_before>const nlp = require('nlp_compromise');

const htmlToNlpTerms = html => {
  try {
    return nlp.text(html).terms();
  } catch (err) {
    console.log('error running nlp', err);
    return [];
  }
};

module.exports = function(html, callback) {
//   console.log('* running process id: ', process.pid);
  callback(null, htmlToNlpTerms(html)
    .filter(term => term.tag === 'Adjective')
    .map(term => term.text));
};<commit_msg>add logging for starting nlp worker<commit_after>const nlp = require('nlp_compromise');

const htmlToNlpTerms = html => {
  try {
    return nlp.text(html).terms();
  } catch (err) {
    console.log('error running nlp', err);
    return [];
  }
};

module.exports = function(html, callback) {
  console.log('* running process id: ', process.pid);
  callback(null, htmlToNlpTerms(html)
    .filter(term => term.tag === 'Adjective')
    .map(term => term.text));
};
{'fraction_non_alphanumeric': 0.17640573318632854, 'fraction_numerical': 0.0, 'mean_word_length': 3.855614973262032, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2207553', 'n_tokens_mistral': 314, 'n_tokens_neox': 311, 'n_words': 67}