kylebgorman / citylex Goto Github PK
View Code? Open in Web Editor NEWAn English lexical database from the Big ๐, let's go Mets baby love da Mets
License: Apache License 2.0
An English lexical database from the Big ๐, let's go Mets baby love da Mets
License: Apache License 2.0
Here, I don't think that there's any good reason to use ARPAbet, but it would be good to have both IPA transcriptions and X-SAMPA.
Hi! I recently tried to execute the code citylex --all-free
from a Google Colab notebook and I got the following error:
INFO: Requesting URL: http://crr.ugent.be/papers/SUBTLEX-UK.xlsx
Traceback (most recent call last):
File "/usr/local/bin/citylex", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.7/dist-packages/citylex.py", line 502, in main
_subtlex_uk(lexicon)
File "/usr/local/lib/python3.7/dist-packages/citylex.py", line 248, in _subtlex_uk
ptr.subtlex_uk_freq = freq
TypeError: '' has type str, but expected one of: int, long
I have a feeling this is because something is corrupted in the frequency column of the SUBTLEX-UK data but I do not really know. Just thought you'd like to know that this error is out there.
ETA: If I run citylex --elp --cmudict
everything works just fine and it saves a tsv of all of the stats.
There's no reason why we can't provide UDLexicon's UD features as such, or translate UM features back to UD features, and so on. The more's the merrier.
In addition to raw frequencies we should report van Heuven et al.'s "Zipfs". Ignoring the Laplace smoothing they talk about, the equation seems to be:
import math
def zipfs(count: int, total: int) -> float:
# Subtraction in log-space is division in real-space.
scale = math.log10(count) - math.log10(total)
return scale + 9
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.