Comments (2)
Thinking about this, would a CSV not be a better representation of the data than a text file? We can have a csv file with the format:
|yoruba|english| translation
I suppose the challenge with that would be updating the file when we get more data. Would be easier to dump into a folder than having to update a csv each time.
I'll go ahead and implement your idea now. If the csv idea appeals enough, we can always have that implementation available later.
from yoruba-text.
I think the problem with a CSV |yoruba|english| translation
is not that its not a good idea or intuitive format ... it is that that is not the format used by OpenNMT, Tensor2Tensor etc.
See here (which is also how we do it for ADR), how they split text into "source" (langA) and target (langB) files ...each line corresponding to the same line in the other file: http://opennmt.net/OpenNMT-py/options/preprocess.html
So if you use a CSV, you still have to segment it into sources & targets before you can create an input-training batch, that's why I was thinking if we do any work to split it, why not make it ready for either a monolingual YO ADR task as well as a NMT task ...any sha, that's my thinking.
Back to CSV, another idea, is to ALSO make a CSV that can be used for human validation of the text or another non-NMT, non-ADR purpose.
For maintenance/update, I haven't found a good way update text, since we get text submissions periodically. For Kọ́lá's and Toluwase's texts, what I did was concatenate all texts (new & old) then did (on Linux) uniq | sort
to filter out the duplicates and sort them (nice but unnecessary for training).
Let's feel free to establish our own "best practise" for our specific computing tasks!
from yoruba-text.
Related Issues (13)
- Scrape partially diacritized text
- how to produce BENCHMARK_DISTRIBUTION ? HOT 3
- verses to bible text HOT 6
- [FIX] training and test text from Tolúwaṣẹ lang-id task HOT 1
- Validate and convert new texts to NFC HOT 1
- Move test_yoruba_diacritic_removal.py to a utils or scripts folder HOT 2
- Add JW300 Text HOT 1
- [CLEANUP] unclean text HOT 1
- Add OSCAR corpus
- Provide a script to cleanly download and normalize text HOT 3
- Scrape second Yorùbá Bible version HOT 1
- Fully scrape the book of mormon 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 yoruba-text.