Skip to content

Instantly share code, notes, and snippets.

View vitojph's full-sized avatar

Víctor Peinado vitojph

View GitHub Profile
➜ k git:(master) ✗ _scripts/setup.sh
Installing Homebrew...
==> Checking for `sudo` access (which may request your password)...
Password:
==> This script will install:
/opt/homebrew/bin/brew
/opt/homebrew/share/doc/homebrew
/opt/homebrew/share/man/man1/brew.1
/opt/homebrew/share/zsh/site-functions/_brew
/opt/homebrew/etc/bash_completion.d/brew
@vitojph
vitojph / amazon-massive-intents-en.txt
Last active June 6, 2022 12:53
Amazon MASSIVE intents for English and Spanish
1150 calendar_set
938 play_music
855 weather_query
829 general_quirky
794 calendar_query
775 qa_factoid
709 news_query
610 email_query
531 email_sendemail
502 datetime_query
@vitojph
vitojph / config.yml
Created April 26, 2019 14:27
Input config file for text classification with sklearn
# config file for train-models.py
# cols names containing X and y
X: text
y: class
# the input language determines the stopword list used: spanish, english, etc
language: spanish
# train/test split
@vitojph
vitojph / train.py
Created April 26, 2019 14:23
Train a text classifier using sklearn
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import argparse
import yaml
import logging
import sys
import numpy as np
import pandas as pd
@vitojph
vitojph / jobs-minsait-nlp-experts.md
Last active October 9, 2018 09:48
Senior NLP and ML Experts for Minsait's AI Team #jobs #NLProc #python

Senior NLP and ML Experts for Minsait's AI Team

Minsait's AI Team is looking for experts in Natural Language Processing who help build NLP-based solutions in our information access products, in the legal, banking, and utilities domains.

If you're a curious mind, passionate for Natural Language Processing, and if you have previous experience designing, developing and evaluating NLP systems, please contact vjpeinado AT minsait.com.

Your responsibilities:

  • Be a doer, become a proactive member of our AI team.

Keybase proof

I hereby claim:

  • I am vitojph on github.
  • I am vitojph (https://keybase.io/vitojph) on keybase.
  • I have a public key ASDM-UPA227vEwesn01TsjH_v64eC0DU_MtskoLNquSF-wo

To claim this, I am signing this object:

@vitojph
vitojph / universal_tagset-ES.map
Created February 17, 2017 09:00
mapping between EAGLES tags (used by Freeling) and universal tagset for PoS tagging in Spanish
da0fs0 DET
pp3ns000 PRON
rg ADV
vmif3s0 VERB
vsic3s0 VERB
ao0fs0 ADJ
ao0mp0 ADJ
vag0000 VERB
px2fs0s0 PRON
cc CONJ
@vitojph
vitojph / wikipedia-word2vec.py
Last active February 17, 2017 08:39
reads a collection of text files containing Wikipedia articles and creates a word2vec model
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import gensim
import logging
import os
import bz2
class WikiCorpus(object):
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import tweepy
import time
from datetime import datetime
# añade las credenciales de tu aplicación de twitter
# como cadenas de texto
CONSUMER_KEY = ''
@vitojph
vitojph / usando-freeling.md
Last active November 30, 2021 04:05
Usando freeling

Deployment de Flask en Apache y configuración

Los servicios siguen funcionando en los mismos puertos pero solo responden desde 146.255.185.24, 87.218.2.105 y en local (127.0.0.1).

En /etc/apache2/sites-available/ he creado dos archivos de configuración para el servicio de identificación de idioma por el puerto 8880 (langident) y para los de análisis lingüístico del castellano en el puerto 8881 (flwses).

En estos ficheros:

  1. utilizo WSGI (un interfaz para web services en Python) para arrancar los scripts, que están alojados en /home/freelingr/public_html/freeling-api/