Skip to content

Commit

Permalink
Remove printout
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangguanheng66 committed Feb 22, 2021
1 parent 2bb4b17 commit 9a0ff45
Showing 1 changed file with 4 additions and 34 deletions.
38 changes: 4 additions & 34 deletions examples/legacy_tutorial/migration_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -102,26 +102,14 @@
{
"cell_type": "code",
"metadata": {
"id": "7DRXJFgzriaH",
"colab": {
"base_uri": "https://localhost:8080/"
},
"outputId": "c530dcc1-49be-46e9-a2ca-b374fb027328"
"id": "7DRXJFgzriaH"
},
"source": [
"legacy_examples = legacy_train.examples\n",
"print(legacy_examples[0].text, legacy_examples[0].label)"
],
"execution_count": null,
"outputs": [
{
"output_type": "stream",
"text": [
"['A', 'tour', 'deforce!', 'OK', 'the', 'kid', 'that', 'plays', 'Oliver', 'is', 'a', 'bit', 'toooooo', 'sweet!', 'Starting', 'with', 'the', 'great', 'cinematography,', 'color,', 'costumes', 'and', 'most', 'impressive', 'performances', 'this', 'is', 'a', 'must', 'see', 'movie.', 'I', 'have', 'seen', 'several', 'adaptations', 'of', 'this', 'great', 'novel,', 'but', 'this', 'one', 'stands', 'above', 'them', 'all', 'and', 'its', 'a', 'musical', 'to', 'boot!', 'It', 'is', 'a', 'masterful', 'Fagan,', 'never', 'leaving', 'his', 'character', 'to', 'do', 'a', 'song.', 'You', 'never', 'really', 'know', 'if', 'you', 'like', 'him', 'or', 'not,', 'the', 'same', 'feeling', 'I', 'got', 'in', 'the', 'book.', 'In', 'other', 'versions', 'you', 'hate', 'him', 'from', 'start', 'to', 'finish.', 'Bill', 'Sykes....', 'when', 'you', 'read', 'the', 'book', 'hes', 'a', 'mean', 'one,', 'and', 'so', 'he', 'is', 'in', 'this', 'movie.', 'Oliver', 'Reed', 'was', 'masterful.', 'His', 'wife', 'directed', 'this', 'masterpiece.', 'I', 'went', 'and', 'saw', 'his', 'last', 'movie,', 'Gladiator', 'based', 'on', 'his', 'many', 'fine', 'performances,', 'not', 'to', 'see', 'the', 'headliners.', 'The', 'music', 'fits', 'the', 'times', 'and', 'the', 'mood.', 'Who', 'will', 'buy', 'this', 'beautiful', 'movie?', 'You', 'Should!'] pos\n"
],
"name": "stdout"
}
]
"outputs": []
},
{
"cell_type": "markdown",
Expand Down Expand Up @@ -157,31 +145,13 @@
{
"cell_type": "code",
"metadata": {
"id": "wUkWE1KWsPqy",
"colab": {
"base_uri": "https://localhost:8080/"
},
"outputId": "5561a19a-f6a8-4867-d5de-63c999675084"
"id": "wUkWE1KWsPqy"
},
"source": [
"next(train_iter)"
],
"execution_count": null,
"outputs": [
{
"output_type": "execute_result",
"data": {
"text/plain": [
"('neg',\n",
" 'I rented I AM CURIOUS-YELLOW from my video store because of all the controversy that surrounded it when it was first released in 1967. I also heard that at first it was seized by U.S. customs if it ever tried to enter this country, therefore being a fan of films considered \"controversial\" I really had to see this for myself.<br /><br />The plot is centered around a young Swedish drama student named Lena who wants to learn everything she can about life. In particular she wants to focus her attentions to making some sort of documentary on what the average Swede thought about certain political issues such as the Vietnam War and race issues in the United States. In between asking politicians and ordinary denizens of Stockholm about their opinions on politics, she has sex with her drama teacher, classmates, and married men.<br /><br />What kills me about I AM CURIOUS-YELLOW is that 40 years ago, this was considered pornographic. Really, the sex and nudity scenes are few and far between, even then it\\'s not shot like some cheaply made porno. While my countrymen mind find it shocking, in reality sex and nudity are a major staple in Swedish cinema. Even Ingmar Bergman, arguably their answer to good old boy John Ford, had sex scenes in his films.<br /><br />I do commend the filmmakers for the fact that any sex shown in the film is shown for artistic purposes rather than just to shock people and make money to be shown in pornographic theaters in America. I AM CURIOUS-YELLOW is a good film for anyone wanting to study the meat and potatoes (no pun intended) of Swedish cinema. But really, this film doesn\\'t have much of a plot.')"
]
},
"metadata": {
"tags": []
},
"execution_count": 36
}
]
"outputs": []
},
{
"cell_type": "markdown",
Expand Down

0 comments on commit 9a0ff45

Please sign in to comment.