Corpora

 

I store my modernista texts in a MYSQL database where I have divided them up by genres, not books. In other words: instead of tokenizing Azul. . . as a book, I keep every poem and story from that book as a separate document. The reason for this, of course, is to have the opportunity of looking for patterns present in specific genres, like the crónica modernista. See the example below:

+----------+--------+-----------+--------+-------------+------+--------+-------+------+
| token_id | doc_id | token     | counts | title       | date | author | genre | book |
+----------+--------+-----------+--------+-------------+------+--------+-------+------+
|        1 |      1 | a         |      1 | A UNA NIÑA  | 1882 | NAJERA | poe   | NONE |
|        2 |      1 | agitarse  |      1 | A UNA NIÑA  | 1882 | NAJERA | poe   | NONE |
|        3 |      1 | al        |      2 | A UNA NIÑA  | 1882 | NAJERA | poe   | NONE |
|        4 |      1 | alas      |      1 | A UNA NIÑA  | 1882 | NAJERA | poe   | NONE |
|        5 |      1 | alcoba    |      1 | A UNA NIÑA  | 1882 | NAJERA | poe   | NONE |
|        6 |      1 | alfombras |      1 | A UNA NIÑA  | 1882 | NAJERA | poe   | NONE |
|        7 |      1 | aman      |      1 | A UNA NIÑA  | 1882 | NAJERA | poe   | NONE |
|        8 |      1 | amores    |      1 | A UNA NIÑA  | 1882 | NAJERA | poe   | NONE |
|        9 |      1 | andas     |      1 | A UNA NIÑA  | 1882 | NAJERA | poe   | NONE |
|       10 |      1 | ángel     |      1 | A UNA NIÑA  | 1882 | NAJERA | poe   | NONE |
+----------+--------+-----------+--------+-------------+------+--------+-------+------+



Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s