Comments (7)
Yeah, there are a lot of "internal" functions that aren't likely to be useful to most people. I'll think about some key functions that form the "core API" and write up some docs on those which I'll include in this repo but which you can re-use in CLTK.
from greek-accentuation.
Hi James, I think that's a fine name. I like to import my models in the following way. Is this along the lines of what you were thinking about?
>>> from greek_accentuation import characters
>>> from greek_accentuation import syllabify
>>> from greek_accentuation import accentuation
Your project is definitely due for a 1.0 release! I am also thinking about including it by default into the cltk (I don't know if that changes anything for you). @j-duff can chime in, too.
from greek-accentuation.
Yes, you could do
from greek_accentuation import characters
or things like
from greek_accentuation.characters import strip_accents
The other thing I could do if there are no name clashes across the three modules is have greek_accentuation/__init__.py
import the modules so things like from greek_accentuation import strip_accents
would work.
I'll also take the opportunity to move over some (but not all) of the stuff in https://github.com/jtauber/greek-inflexion/blob/master/accent.py to this package.
from greek-accentuation.
Sounds perfect.
The other thing I could do if there are no name clashes across the three modules is have
I personally disfavor these, as it complicates debugging. However there are times it's called for, I'm sure.
from greek-accentuation.
Done (minus any magic in __init__.py
) and released as 1.0.0
from greek-accentuation.
@kylepjohnson I'd be delighted for it to be included in CLTK by default.
from greek-accentuation.
🎉
Let's add it when we push Jack's work!
My request for you is to think about what kind of info we should include in the cltk docs. We should do more than just a link to your site, however we don't need to explain every nuance, either. Let us know (maybe Jack can help) or make a PR yourself.
from greek-accentuation.
Related Issues (15)
- add_necessary_breathing can get UnboundLocalError
- Grave accent HOT 1
- display_accentuation(get_accentuation('ἣ')) -- eta rough breathing and grave -- throws and error HOT 5
- a "strip accent" function? HOT 1
- Grave accent (again) HOT 1
- Accenting Ἰάννης HOT 3
- dealing with an omega that is short for the purposes of accentuation
- accenting ὕβρεως rather than *ὑβρέως
- document the core API HOT 2
- sillabify lines for poetry HOT 7
- Syllabify rules HOT 1
- Incorrect syllabification of αυῖ (e.g. μεμαυῖα)
- How do I get rid of extra accents from enclitics: e.g., Μαῖράν HOT 3
- Test suite HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from greek-accentuation.