appeler / search_names Goto Github PK
View Code? Open in Web Editor NEWSearch a long list of names (patterns) in a large text corpus systematically and quickly
License: MIT License
Search a long list of names (patterns) in a large text corpus systematically and quickly
License: MIT License
Traceback (most recent call last):
File "search_names.py", line 10, in
csv.field_size_limit(sys.maxsize)
OverflowError: Python int too large to convert to C long
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "search_names.py", line 13, in
csv.field_size_limit(sys.maxint)
AttributeError: module 'sys' has no attribute 'maxint'
I'm using Python 3. Changing line 10 from csv.field_size_limit(sys.maxsize)
to csv.field_size_limit(100000000)
avoids this error, but not sure if it's best practice
Got this error when running search_names.py using the sample text_corpus.csv,
Traceback (most recent call last):
File "search_names.py", line 230, in
args = load_config(args)
File "search_names.py", line 108, in load_config
if args is None or isinstance(args, basestring):
NameError: name 'basestring' is not defined
Traceback (most recent call last):
File "search_names.py", line 23, in
from Queue import Empty
ModuleNotFoundError: No module named 'Queue'
Changing from Queue import Empty
to from queue import Empty
avoids this. Not sure if it's pointing to the same module
Use pyNER to get list of persons in a text corpus and output it with other contextual data in the text file.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.