This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
# Author: Hussein Al-Olimat @halolimat | |
from urllib.request import urlopen | |
from itertools import groupby | |
import sys, random, dill | |
import numpy as np | |
from sklearn.feature_extraction.text import CountVectorizer | |
from sklearn_crfsuite import metrics |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.IOException; | |
import java.nio.file.Files; | |
import java.nio.file.Paths; | |
import java.util.List; | |
import java.util.stream.Collectors; | |
import java.util.stream.Stream; | |
import java.util.ArrayList; | |
public class ReadFileClass { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
################################################################################ | |
# File name: pso.py # | |
# Description: A module that solves a minimization problem using PSO # | |
#------------------------------------------------------------------------------# | |
# Author: Hussein S. Al-Olimat # | |
# Email: hussein@knoesis.org # | |
#------------------------------------------------------------------------------# | |
# Date-last-modified: Nov 7, 2016 # |